Program to find largest & smallest number from given numbers



#include
main()
{ int count=0;
float value, high, low, sum=0, average, range;
clrscr();
printf("Enter numbers in a line: input a NEGAATIVE number to end\n");
input:
scanf("%f",&value);
if(value<0)
goto output;
count+=1;
if(count==1)
high=low=value;
else if(value>high)
high=value;
else if(valuelow="value;"
goto=""
average="sum/count;"
total=""
range="high-low;"
naverage=""
n="">

1 comment: