0

I can't understand how it work , can anyone describe every steps?

#include <stdio.h> main() { int i,j,a[][3]={1,2,3,4,5,6,7,8,9}; for(i=0;i<3;i++) for(j=i+1;j<3;j++) a[j][i]=0; for(i=0;i<3;i++) { for(j=0;j<3;j++) printf("%d ",a[i][j]); printf("\n"); } }

9th Dec 2019, 7:40 AM
Naem Azam
Naem Azam - avatar
1 Answer
+ 1
use the open and closing curly bracket when writing for, while, if that was the problem in you other post, since your a beginner use em always, and put your code on code playground then link it here, not every use will like to read an unformatted code
9th Dec 2019, 7:52 AM
✳AsterisK✳
✳AsterisK✳ - avatar