Question: Write a program to input 6 elements in an array. Find out and print whether the array is symmetric i.e. is it a mirror of
Write a program to input 6 elements in an array. Find out and print whether the array is symmetric i.e. is it a mirror of itself. For example, array 1 2 3 3 2 1 is symmetric, while array 1 2 3 4 5 6 is not symmetric. Hint: You can run a loop to compare first element with last element, then 2nd element with 2nd last element and so on.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
