#if문
'''
if 조건:
    실행할 코드
'''
i = -1
if i > 0:
    print('i가 0보다 크다')

print('-----문제1-----')
score = int(input())
if score > 60:
    print('합격!')
else:
    print('불합격')

#if-else문
'''
if 조건:
    조건이 맞을 때 실행할 코드
else:
    조건이 틀렸을 때 실행할 코드
'''

print('-----홀수 짝수 구분----')
num = 1923712906
if num % 2 == 0:
    print('짝수입니다')
else:
    print('홀수입니다')

print('-----문제2-----')
age = int(input())
if age > 7:
    print("학교에 다닙니다")
else:
    print('학교에 안다닙니다')

print('-----문제3-----')
number = -1
if number == 0:
    print('0입니다')
else:
    print('0이 아닙니다')


Embed on website

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