Question: Write a program that declares and initializes 2 integer variables a and b with the values 35 and 14 and displays and calculates their sum,
Write a program that declares and initializes 2 integer variables a and b with the values 35 and 14 and displays and calculates their sum, product quotient and real division result The output should exactly look like: 35 + 14 = 49 35 * 14 = 490 35 DIV 14 = 2 35 % 14 = 7 35/14 = 2.500000 In order to produce this output, use printf() function to display text combined with values of variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
