#사용자 정의 함수
def mul():
    result = 100 * 8
    return result
print(mul())
def mul2(a, b):
    result = a * b
    return result
print(mul2(100, 5))
def mul3(a, b):
    result = a * b
    print(result)
mul3(100, 300)
#두 개의 숫자를 더하는 함수
#매개변수 있고, 리턴은 없는 형태

#1000에서 두 개의 숫자를 빼는 함수 (1000 - a - b)
#매개변수가 있고, 리턴도 있는 형태

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: