๐ง๋ฌธ์ /์ฝ๋์
ํ๋ก๊ทธ๋๋ฐ ๊ธฐ์ด in Python | ์ธ ์์ ๊ณฑ
์ ์ 001
2022. 1. 12. 11:37
์ธ ์์ ๊ณฑ์ ์๋ ค์ฃผ๋ ํ๋ก๊ทธ๋จ์ ๋ง๋ค๋ ค๊ณ ํฉ๋๋ค. ํ๋ผ๋ฏธํฐ๋ก ์ ์ ๊ฐ ์ธ ๊ฐ๋ฅผ ๋ฐ๊ณ , ์ธ ์์ ๊ณฑ์ ์ถ๋ ฅํ๋ ํจ์ multiply_three_numbers๋ฅผ ๋ง๋ค์ด ๋ณด์ธ์. |
def multiply_three_numbers(a, b, c):
print(a * b * c)
# ํ
์คํธ ์ฝ๋
multiply_three_numbers(7, 3, 5)
multiply_three_numbers(21, 4, 9)
multiply_three_numbers(-7, 6, 3)
# ์ซ์๋ฅผ ์
๋ ฅ๋ฐ์ ์ถ๋ ฅํ๊ธฐ
a = int(input())
b = int(input())
c = int(input())
def multiply_three_numbers(a, b, c):
print(a * b * c)
multiply_three_numbers(a, b, c)