Printing Pattern Using Loops

  • + 0 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++;}