[ create a new paste ] login | about

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

C, pasted on Dec 15:
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
int main(void)
{
 int i,a[3];
 for(i=5;i<=10;i++){
  a[i] = i;
  printf("%d\n",a[i]);
 }
 return 0;
}
 
 


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


Create a new paste based on this one


Comments: