Press any key to continue
Question 2:
(1 mark, file to be edited: Q2.c)
The program allows the user to enter five integers from the keyboard.
Count and print the number of numbers not divisible by 3 and divisible by 5.
Below is an example of how the program will run:
10 3 65-20
OUTPUT:
3
Press any key to continue
Question 3:
(1 mark, file to be edited: Q3.c)
The program allows users to enter two integers 'a' and 'b' from the keyboard (a < b).
Print to the screen the average value of even numbers between 'a' and 'b'.
Here is an example of how the program will run:
+ 100%
Zoom
Close