| ➥ | Chinese = float(input("請輸入國文成績:")) |
| ➥ | English = float(input("請輸入英文成績:")) |
| ➥ | Math = float(input("請輸入數學成績:")) |
| ➥ | avg = (Chinese + English + Math) / 3 |
| ➥ | print("平均分數為:",avg) |
| ➥ | Chinese = float(input("請輸入國文成績:")) |
| ➥ | English = float(input("請輸入英文成績:")) |
| ➥ | Math = float(input("請輸入數學成績:")) |
| ➥ | avg = (Chinese + English + Math) / 3 |
| ➥ | print("平均分數為:",avg) |