Write program that uses for loops that inputs square array


Write a program that uses "for loops" that inputs a 2 dimensional square array of [50][50] rows and columns. then the program will copy only the diagonal elements from upper left corner to the lower right corner to a 1D dimensional array using a function.

The program should also calculate the average of the diagonal elements. Display the given matrix, calculated single array, and the average of the diagonal elements then

Write a program using arrays that will inpuyt 20 real numbers then display Those 20 numbers BACKWARD on the screen.

Request for Solution File

Ask an Expert for Answer!!
Mechanical Engineering: Write program that uses for loops that inputs square array
Reference No:- TGS0844588

Expected delivery within 24 Hours