Question: i need ayuda help with this in visual studio 1 . Create variable called intNumber 1 2 0 with integer datatype and a value of

i need ayuda help with this in visual studio 1. Create variable called intNumber120 with integer datatype and a value of 120. Create a second called intNumber10 with the same datatype and a value of 10. Create a variable called intResult with an integer datatype. These variables will be used in the following exercises
2. Create an arithmetic assignment statement to add intNumber120 to intNumber10 and store the result in intResult.
3. Create an arithmetic assignment statement to multiply intNumber120 by intNumber10 and store the result in intResult.
4. Create an arithmetic assignment statement to subtract intNumber120 from intIntNumber10 and store the result in intResult.
5. Create an arithmetic assignment statement to divide dblNumber120 by a literal constant 20 and store the result in dblResult
6. Use integer division (\) to divide intNumber120 by a literal constant 9 and store the result in intResult. What is the contents of intResult?
7. Use modulo division (mod) to divide dblNumber120 by a literal constant 9 and store the result in intResult. What is the contents of intResult?

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 Programming Questions!