+ 2
Write a program to print the left and right diagonal elements of an NXN matrix
3 Respuestas
+ 12
//for main diagonal from A11 to Ann ,
1)make a loop to move in rows .... r
2)make a loop inside that loop ... to move through columns of that row ... c
3)print elements of having condition r==c
//for diagonal from last column of 1st record to 1st column of last record
1)//same as above
2)//same as above
3)condition : r+c=N-1
+ 1
As this is a challenge, I think its better to post it in Sololearn's Lesson Factory as an assignment.
https://www.sololearn.com/discuss/1082512/?ref=app
0
Yes, when i suggested something learned they said to get something hard and out of the course. When I did this I was said to get some calculations. At last it came again to give something from learning outcomes. Nothing is selected yet!