+ 1

My first program for chaining condition.

## EXP gain: 90-100 => 50 80-89 => 30 70-79 => 10 0-69 => 0 ## score1 = int(input()) score2 = int(input()) average = (score1 + score2) / 2 if average == 100: print("50") else: if average >= 90: print("50") else: if average >= 80: print("30") else: if average >= 70: print("10") else: if average >= 0: print("0")

6th Jan 2021, 6:44 PM
Yamo
Yamo - avatar
1 Odpowiedź
+ 5
6th Jan 2021, 7:09 PM
A͢J
A͢J - avatar