Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int t[5][5];
- int i,j;
- i=0;
- while(i<5){
- j=0;
- while(j<5){
- t[i][j]=i+j;
- j++;
- }
- i++;
- }
- printf("\nElementy NA przekatnej:\n");
- for(i=0,j=0;i<5,j<5;i++,j++){
- if(i=j){
- printf("%2d",t[i][j]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement