a = int(input())     ##원의넓이
area = a**2*3.14
print(a,"**2*3.14 =",area)


a= int(input())
one = a%10
print(one)
a=a//10
ten = a%10
print(ten)
a=a//10
hun = a%10
print(hun)


a = int(input())
min = a//60
sec = a%60
print(min,":",sec)


weight = float(input("체중 kg 단위로 입력"))
height = float(input("신장을 미터 단위로 입력"))
bmi = (weight/(height**2))
print("당신의 BMI는 ",bmi,"입니다")


print(1==2)     ##  ==는 같다
print(int(1==2))


x=int(input())
if (x>=60):           ##괄호 없어도 가능, :이 중요!
    print("합격")   ## 줄 유의!
else:
    print("불합격")

Embed on website

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