user have to input 10 numbers and the program should read the largest number.the largest should be done in function..i can do the looping make user input 10 numbers but i don't know how to do the function to determine the largest..please help me!!! here is my code..
#include <stdio.h>
int main ()
{
int largest;
double total=0;
int x;
int i;
printf("Please key in 10 numbers\n");
for(i=0; i<10; i++)
{
printf("Key in your number:");
fflush(stdin);
scanf("%f", &x);
}
return 0;
}