Write a program in a language c++ to print the top triangle above the main diagonal of the quadrilateral matrix. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Write a program in a language c++ to print the top triangle above the main diagonal of the quadrilateral matrix.

The code is missing please help me #include <iostream > Using namespace std ; Int main () { int a[4][4],i,j; for(i=0;i<4;i++) for(j=0;j<4;j++) cin>> a[i][j]; cout<<endl; return 0; }

29th May 2021, 12:39 PM
Jhk Jhik
Jhk Jhik - avatar
4 Answers
0
Why are you asking same question again and again without showing your attempts? You don't want to learn coding? We don't help on homework type questions.
29th May 2021, 12:46 PM
A͢J
A͢J - avatar
0
This question is not a homework...
29th May 2021, 1:28 PM
Jhk Jhik
Jhk Jhik - avatar
29th May 2021, 1:33 PM
Jhk Jhik
Jhk Jhik - avatar
- 1
I've tried but to no avail...
29th May 2021, 12:48 PM
Jhk Jhik
Jhk Jhik - avatar