- Do not edit given statements in the main function.
Kizspy. mee output value is formatted in two decimal places
Sample input and output:
3 of 4 Paper No: 1
Input:
Enter n: 3
After processing: S(n) = (1/2+1/4+1/6)=0.92
Output for marking:
OUTPUT:0.92
Question 3:
(2 marks)
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 Arrav: 5 2 4 36
Zoom FUD
+ 100%
Close