8/12 Task


#1

How do I set the int variable number MyNumber to equal the sum of two numbers?:confused:


#2

HI
DO you know how to create a variable?
Sorry but Do you know how to sum two number?


#3

@blogrunner08214, from instruction to the lesson:

Now let's try arithmetic in Java. You can add, subtract, multiply, and divide numbers and store them in variables like this:

int sum = 34 + 113;
int difference = 91 - 205;
int product = 2 * 8;
int quotient = 45 / 3;

Answer: int myNumber = 1 + 1;


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.