본문 바로가기

둘 다로 나누어 떨어지는가

둘 다로 나누어 떨어지는가

전정수 n을 int(input())으로 읽습니다(예시: 12). n이 양쪽 3과 4으로 모두 정확히 나뉘면 yes을 출력하고, 그렇지 않으면 no을 출력합니다.

This is the shape a leap-year test is built from: a remainder question, == 0, and and between two of them. Each side must be a whole question — n % 3 == 0 and n % 4 == 0.

로그인 또는 계정 만들기

IGCSE, A-Level & AP