2 of 2
Paper No: 6
37
OUTPUT:0.48
Press any key to continue
Question 2:
(1 mark, file to be edited: Q2.c)
The program requires the user to enter two integers m and n (m < n) from the keyboard.
If m > n, then swap the values of these two numbers.
Print the total values of the numbers from m to n.
Below is an example of how the program will run:
Enter m = 5, n = 10
5 10
Zoom
+ 100%
Close