Score average


Submit solution

Points: 5
Time limit: 1.0s
Memory limit: 64M

Authors:
Problem type

題目說明

請輸入三個成績,並計算平均。
最後顯示平均成績及是否及格 (及格分數為60分)

輸入

三個數字。(可以是浮點數)

輸出

依照題目說明及格分數為60分。
假設平均分數為70,則顯示 Your average score is 70, pass!
假設平均分數為50,則顯示 Your average score is 50, fail!

範例輸入 #1

69 45 90

範例輸出 #1

Your average score is 68.0, pass!

範例輸入 #2

78 21 51

範例輸出 #2

Your average score is 50.0, fail!

範例輸入 #3

84 61 94

範例輸出 #3

Your average score is 79.66666666666667, pass!

Comments

There are no comments at the moment.