OUTPUT:0.48Press 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
OUTPUT:
45
Press any key to continue
Question 3:
(1 mark, file to be edited: Q3.c)
The program asks the user to enter any integer n from the keyboard.
Count and print the numbers in the range from 1 to 100 divisible by n.
If no number satisfies, print the string: "There is no number divisible by n"
Close
+ 100%
Zoom