Question: IN java Assign the value 9 to a variable named myFirstNumber and the value 13 to a variable named mySecondNumber. Print out the sum of

IN java

IN java Assign the value 9 to a variable named myFirstNumber and

Assign the value 9 to a variable named myFirstNumber and the value 13 to a variable named mySecondNumber. Print out the sum of the values stored within these two variables. Assign new values to myFirstNumber and mySecondNumber: 65 and 3 respectively. Print out the product of the new values stored within these two variables. (That is, print out the result of multiplying the new values stored within these two variables.) Loop through the first 100 numbers, printing out Yes! if a number is divisible by 2, and No! if it is not (Hint: Use the modulo operator %, which is also known as the odulus operator)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!