[ create a new paste ] login | about

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

Rituparnadatta - C, pasted on Aug 15:
1
2
3
4
5
6
7
8
9
10
11
12
//ARRAY//
#include<stdio.h>
int main()
{
int arra[10]={10, 20, 30, 40, 50, 60, 70, 80, 90, 100};
int i;
for(i=0; i<10; i++)
{
printf("%d the element is: %d\n",i+1, arra[i]);
}
return 0;
}


Output:
1
2
3
4
5
6
7
8
9
10
1 the element is: 10
2 the element is: 20
3 the element is: 30
4 the element is: 40
5 the element is: 50
6 the element is: 60
7 the element is: 70
8 the element is: 80
9 the element is: 90
10 the element is: 100


Create a new paste based on this one


Comments: