Question: need this in prog C 4. Write a program that declares and initializes 2 integer variables var1 and var2 with the values 500 and 25,
4. Write a program that declares and initializes 2 integer variables var1 and var2 with the values 500 and 25, and calculates their sum, difference, product, and quotient. Finally, print the values out. The output should look like this exactly: Output example: 500 + 25 = 525 500 25 = 475 500 * 25 12500 500 / 25 20 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
