8/12 Task

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

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

@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;

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