Kizspy.me:
(1 mark, file to be edited: Q1.c)
Users are required to enter two "float" numbers: 'a' and 'b' using the keyboard (STDIN).
Please print out the result of (a+b)/2 with 2 decimal places.
Below is an example of how the program will run:
Enter the values 5.82 for 'a', 9.66 for 'b'
2 of 2
Paper No: 7
INPUT:
5.82
9.66
OUTPUT:
7.74
Press any key to continue
Question 2:
(1 mark, file to be edited: Q2.c)
Your program allows the user to enter an array of 'n' integer numbers, where 'n' is entered from the
keyboard (STDIN).
Program to print the even numbers sorted in ascending order. There is a newline character '\n' between
any two printed numbers.
Below is an example when 'n' = 6; elements: (2, -4, 5, 8, 15, 0}
2-4 58 150
OUTPUT:
-4
2
8
Press any key to continue...
Zoom
+100%
Close