Question paper (build 07.05.20.19)
(1 mark, file to be edited: Q1.c)
Users are required to enter two integer variables a and b using the keyboard (STDIN).
Please check the following conditions:
If a is greater than or equal to b then print: a>=b
If a is less than b then print: a<b
2 of 2
Paper No: 10
Below is an example of how the program will run:
Enter the value 1 for 'a' and the value 4 for 'b'
4
OUTPUT:a<b
Press any key to continue
Question 2:
(1 mark, file to be edited: Q2.c)
Users are required to enter a non-negative integer variables n using the keyboard (STDIN).The system displays the sum of the last three even numbers in range from 0 to n.
Below is an example of how the program will run:
Enter the value 6 for 'n'
OUTPUT:
12 Press any key to continue
FUO
Zoom
100%