Question paper (build 07.05.20.19)
Question 5:
(2 marks, file to be edited: Q5.c)
Your program allows users to enter array of n integers, where n is entered by the user (n<20).
. If the array is symmetric, the program displays: 1
Otherwise the program displays: 0
Below is some examples:
n=5 array = (2,2,3,2,2), symmetric
n=5 array = (2,2,3,4,2}, asymmetric
4 of 4
Paper No: 10
522322
OUTPUT:
Press any key to continue
Press any key to continue
n=4 array = (1,2,2,1), symmetric
n=4 array = (2,2,1,2), asymmetric
Zoom
FUO
+ 100%
CUTPUT: