Input Your 1-Math grade:100
Input Your 2-Math grade:95
Input Your 3-Math grade:80
Input Your 4-Math grade:85
Input Your 5-Math grade:77
The Average Math grade = 87.40
程式接受輸入到(-1)後,停止輸入成績,並算出前述所有同學的平均成績。
Input Your 1-Math grade:100
Input Your 2-Math grade:70
Input Your 3-Math grade:-1
The Average Math grade = 85.00