[ create a new paste ] login | about

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

C++, pasted on Feb 11:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
int main()
{
int a[3];
int i;
printf("Input three integers: ");
for (i = 0; i < 3; ++i)
    scanf("%d", &a[i]);
 
printf("The array:\n");
for (i = 0; i < 3; ++i)
    printf("a[%d] = %d ", i, a[i]);
 
printf("\n");
return 1;
}


Output:
1
2
Input three integers: The array:
a[0] = 134534133 a[1] = 134533984 a[2] = 0 


Create a new paste based on this one


Comments: