I can't think of the actual code off the top of my head, but the logic for it will be like this
x=0;
for (listentry=0, listenrty<=siezeof(list), listentry++)
{
if (listentry>=x)
{
x=listentry;
}
}
printf("largest value in list is %f", x);
to do this in a while loop you'll have to use
while (listentry!=EOF)
{
if (listentry>=x)
{
x=listentry;
}
}
printf("largest value in list is %f", x);
(I suggest using a float rather than an int so that you can use decimals as well in your lists)