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?


User Avatar
Wiki User

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;