You are viewing a single comment's thread. Return to all comments →
core component of this code: for(int x=0;x=n;x--) { for(int y=2*(n-1)-z;y>=z;y--){ a[x][y]=n-z; a[y][x]=n-z; } z++;}
Seems like cookies are disabled on this browser, please enable them to open this website
Printing Pattern Using Loops
You are viewing a single comment's thread. Return to all comments →
core component of this code: for(int x=0;x=n;x--) { for(int y=2*(n-1)-z;y>=z;y--){ a[x][y]=n-z; a[y][x]=n-z; } z++;}