for(i=0; i < N;i++) # set i to 0; is i smaller than N; increment i by 1

{

printf("enter number > " );

scanf("%f", &num);

sum = sum + num;

# the next step should only be done the first time through the loop

if(i== 0)

smallest = num;

largest = num;

# Assign num to smallest if num smaller than current

if(smallest > num)

smallest = num;

# Assign num to largest if num larger than current

if(largest < num)

largest = num;

}