[ create a new paste ] login | about

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

C, pasted on Jul 20:
#include <stdio.h>

char c[3][3];

int main (void)
{
  c[0][0] = 1;
  c[0][1] = 2;
  c[0][2] = 3;
  c[0][3] = 4;
  c[0][4] = 5;
  c[0][5] = 6;
  c[0][6] = 7;
  c[0][7] = 8;
  c[0][8] = 9;
  printf("%d\n", c[0][0]);
  printf("%d\n", c[0][1]);
  printf("%d\n", c[0][2]);
  printf("%d\n", c[1][0]);
  printf("%d\n", c[1][1]);
  printf("%d\n", c[1][2]);
  printf("%d\n", c[2][0]);
  printf("%d\n", c[2][1]);
  printf("%d\n", c[2][2]);
  return 0;
}


Output:
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9


Create a new paste based on this one


Comments: