3 of 3 Paper No: 1
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: n = 5 Array: 13858 x = 8 After processing: 1 3 0 5 0
Output for marking:OUTPUT:1 3 0 5 0
Question 4:
(3 marks)
The given file Q4.c already contains statements to input data for a string. You should write statements to convert the string to lowercase then print the reversed string.
Notes:
- Do not edit given statements in the main function.- You can create new functions if you see it is necessary.
Sample input and output:
-Input:Enter a string:PRF192
Enter a string: Test String
-Input:Enter a string:98765
Output for marking:
OUTPUT:291frp
-Input:
Output for marking:
Output for marking:
OUTPUT:
gnirts tset
OUTPUT:56789
Zoom
+ 80%
Close