# 3์ฅ Lab ๋์ ๋ฌธ์ ํ์ด (1)
104p_Lab ๋์ ๋ฌธ์ )
number = int(input("์ง ๊ฐ์: "))
total = 0
cnt = 1
for i in range (0, number):
weight = int(input("์ง ๋ฌด๊ฒ: "))
if (weight > 20) and (cnt == 1):
total = total + 20000
cnt = 0
else:
continue
if number >= 2:
total = total + 30000
else:
total = total
print("๋ฉ๋ถํ์ค ์ด ๊ธ์ก์", total, "์์
๋๋ค.\n")



105p_Lab ๋์ ๋ฌธ์ )
credit = int(input('ํ์ฌ๊น์ง ์ด์ํ์ ํ์ : '))
if credit >= 140:
print('์กธ์
๊ฐ๋ฅ')
else:
print('์กธ์
๋ถ๊ฐ')


106p_Lab ๋์ ๋ฌธ์ )
number = int(input('์ ์๋ฅผ ์
๋ ฅํด์ฃผ์ธ์: '))
if ((number % 3) == 0):
print('3์ ๋ฐฐ์์
๋๋ค.')
else:
print('3์ ๋ฐฐ์๊ฐ ์๋๋๋ค.')


107p_Lab ๋์ ๋ฌธ์ )
x = int(input('์ฒซ ๋ฒ์งธ ์ ์: '))
y = int(input('๋ ๋ฒ์งธ ์ ์: '))
if ( x < y ):
min = x
else:
min = y
print(x, '์', y, '์ค ๋ ์์ ์๋', min)


110p_Lab ๋์ ๋ฌธ์ )
money = float(input("๊ตฌ์
๊ธ์ก: "))
total = money
if money > 100000:
total = money - (money * 0.05)
print('์ง๋ถํ์ค ๊ธ์ก:', total)
else:
more = 100000 - money
print('์ง๋ถํ์ค ๊ธ์ก:', total)
print(more, '์์ ๋ ์๋นํ์๋ฉด 5% ํ ์ธ๊ฐ๊ฐ ์ ์ฉ๋ฉ๋๋ค.')


116p_Lab ๋์ ๋ฌธ์ )
ach = int(input('์ค์ ์ ์
๋ ฅํ์์ค: '))
goal = int(input('์ค์ ๋ชฉํ๋ฅผ ์
๋ ฅํ์์ค: '))
if ach <= goal:
print('์ค์ ๋ฌ์ฑ ๋ณด๋์ค๋ 0์์
๋๋ค.')
else:
bonus = ach - goal
final_bonus = bonus * 0.1
print('์ค์ ๋ฌ์ฑ ๋ณด๋์ค: ', final_bonus)


118p_Lab ๋์ ๋ฌธ์ )
score = int(input('์ฑ์ : '))
if score >= 95:
print('์ฑ์ : A+')
elif score >= 90 and score < 95:
print('์ฑ์ : A0')
elif score >= 80 and score < 90:
print('์ฑ์ : B')
elif score >= 70 and score < 80:
print('์ฑ์ : C')
elif score >= 60 and score < 70:
print('์ฑ์ : D')
else:
print('์ฑ์ : F')


119p_Lab ๋์ ๋ฌธ์ )
age = int(input('๋์ด๋ฅผ ์
๋ ฅํ์์ค: '))
if age >= 51:
print('๋
ธ๋
๊ธฐ์
๋๋ค.')
elif age >= 31:
print('์ฅ๋
๊ธฐ์
๋๋ค.')
elif age >= 19:
print('์ฒญ๋
๊ธฐ์
๋๋ค.')
elif age >= 13:
print('์ฒญ์๋
๊ธฐ์
๋๋ค.')
else:
print('์ด๋ฆฐ์ด์
๋๋ค.')

