범위 밖의 수
a = int(input())
if a < 10 or a > 20:
print("yes")
else:
print("no")
숫자의 조건 여부 3
a = int(input())
if a%13==0 or a%19==0:
print("True")
else:
print("False")
둘 중 하나의 배수
https://www.codetree.ai/missions/4/problems/multiple-of-either?&utm_source=clipboard&utm_medium=text
a = int(input())
if a%3==0 or a%5==0:
print("1")
else:
print("0")
'코딩테스트 > 프로그래밍 기초 | 조건문' 카테고리의 다른 글
[코드트리] 중첩 조건문 (0) | 2024.11.07 |
---|---|
[코드트리] and, or 혼합 (0) | 2024.10.30 |
[코드트리] and 기호 (1) | 2024.10.09 |
[코드트리] 비교 연산자와 조건문 (1) | 2024.09.25 |
[코드트리] if else if else 조건문 (0) | 2024.09.25 |