finding sum,min,max with array

后端 未结 6 1482
北恋
北恋 2021-01-24 14:24

Write a program that inputs number of values then inputs these values (double type) one by one in a loop and finally outputs their sum, the maximum value and the minimum value.

6条回答
  •  自闭症患者
    2021-01-24 14:50

    • Get rid of the line "i=nu[]".
    • Ensure you're initialising the array you pass in with the relevant number of elements

提交回复
热议问题