[ create a new paste ] login | about

Link: http://codepad.org/5japQ4I4    [ raw code | output | fork ]

C, pasted on Apr 30:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

int main() {
    int x[2][3] = {{1, 2, 3}, {4, 5, 6}};
    int i, j;
    for (i=0; i<2; i++) {
        for (j=0; j<3; j++) {
            printf("%d ", x[i][j]);
        }
        printf("\n");
    }
    return 0;   
}


Output:
1
2
1 2 3 
4 5 6 


Create a new paste based on this one


Comments: