[ create a new paste ] login | about

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

C, pasted on Aug 13:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(void) {
	int numc=0,numd=0;
	int s;
        int i;
        int j;
        int cnt=0;

	scanf("%d",&s);
        s = 5;
	char arr[s][s];

	for(i=0;i<s;i++)
        {
		for(j=0;j<s;j++)
                {
//			scanf("%c",&arr[i][j]);
                    arr[i][j] = cnt;
                    printf("%d\n", arr[i][j]);
                }
	}


return 0;
}


Output:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0


Create a new paste based on this one


Comments: