Computer Programming
C Programming

Help writing a c program that can read 10 different numbers and print 2 together on one line and another 2 on another line?

Answer

User Avatar
Wiki User
03/19/2012

int main() {

int numbers[10];

int j;

for (j=0; j<10; j++) {

scanf("%d", &number[j]);

}

printf( "%d %d\n", number[0], number[1]);

printf( "%d %d\n", number[2], number[3]);

return 0;

}