CodingTest

[파이썬 코딩 도장] 14.7 심사문제: 합격 여부 판단하기

nineDeveloper 2020. 11. 15.
728x90

정답

korean, english, mathematics, science = map(int, input().split())

if korean < 0 or korean > 100 or english < 0 or english > 100 or mathematics < 0 or mathematics > 100 or science < 0 or science > 100:
  print('잘못된 점수')
else:
  if (korean + english + mathematics + science) / 4 >= 80:
    print('합격')
  else:
    print('불합격')
728x90

댓글

💲 추천 글