#include<stdio.h>
void main()
{
int PersonID,Wage,Sex,Age,n;
int a[10][4];
printf("please enter the amount of people you will use \n\r");
scanf("%d",&n);
for(PersonID=1;PersonID<=n;PersonID++);
{
printf("please enter the Person ID\n");
scanf("%d",&a[PersonID][10]);
return 0;
}
}
I am trying to make the program loop and keep asking for values of person ID until N is reached i.e. user defines how many inputs
to the array i.e. N ........ for some reason I can only enter 1 value for person id and not 10 if thats what I enter n as ............
any ideas ???
thanks