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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!