Average, max, and min program in C

前端 未结 8 687
梦毁少年i
梦毁少年i 2021-01-21 02:55

So I\'m coding in C, and I need to come up with code that will take n numbers from the user, and find their minimum, maximum, average, and sum of squares for for their values. S

8条回答
  •  感情败类
    2021-01-21 02:57

    your while loop should look like

       min=3;
       max=0;
    while(countmax)
        max=num;
        if(num

    And I agree with Robert Harvey♦.. You must set min

提交回复
热议问题