This is what I have so far.
#include<stdio.h>
int main()
{
int array_a[18], array_b[5];
int input1, input2;
input1 = 0;
printf("Please enter 13 integers: ");
while(input1<13) /*This while loop will only take 13 integers for the first array*/
{
scanf("%d", &array_a[1]);
input1++;
}
printf("Now enter 5 integers: ");
input2 = 0;
while(input2<5) /* And this one will only take 5 */
{
scanf("%d", &array_b[1]);
input2++;
}
return 0;
}

New Topic/Question
Reply



MultiQuote




|