Question 3:
The given file Q3.c already contains statements to input data for the integer 1-D array and an integer variable named m. You will write statements that sort the array in ascending order then return the element at position m.
Notes:
- You can create new functions if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
INPUT:
Enter number of elements: 5
Array: 5 2 4 3 6
m=3
After processing: result = 5
Output for marking:
OUTPUT:5
Question 4:
(3 marks)
The given file Q4.c already contains statements to input a string. You should write statements so that count the digits of its.
Notes:
- Do not edit given statements in the main function.
- You can create new more functions if you see it is necessary.
Sample input and output:
Zoom FUD
+ 100%
Close