write a program that uses \"for loops\" that inputs a 2 dimensional square array
ID: 1853105 • Letter: W
Question
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
Explanation / Answer
void reverse(b[]) { for(int i=0;i>b[i]; for(i=19;i>=0;i++) coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.