Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdlib.h>
- #include<stdio.h>
- #define o 2
- int main()
- {
- int l, c, m[o][o], aux=1;
- for(l=0; l<o ; l++)
- {
- for(c=0; c<o ; c++)
- {
- m[c][l]=aux;
- //printf("%d\t", m[l][c]);
- aux++;
- }
- //printf("\n");
- }
- printf("\n");
- for(l=0; l<o ; l++)
- {
- for(c=o-1; c>=0 ; c--)
- {
- printf("%d\t", m[l][c]);
- }
- printf("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement