Ok so my program is supposed to ask the use to enter 10 integer values , calculates the sum and average of all 10 integers and outputs the 10 numbers their sum and average .
I have this for the user input but it doesn't work can someone help me figure out what is wrong? I need to get it to display like this
You entered the following numbers:1,2,3,4,5,6,7,8,9,10
Code:
void getUserInput(int number[])
{
int num[10]= {1,2,3,4,5,6,7,8,9,10};
printf("%s%13s\n", "You entered the following numbers:");
for ( i=0; i <10;++i);{
printf("%7u%13d\n",num[i];
}
}