ข้ามไปยังเนื้อหา

หารด้วยทั้งสองลงตัว

หารด้วยสองจำนวนได้พอดี

อ่านจำนวนเต็ม n ด้วย int(input()) (เช่น 12) พิมพ์ yes เมื่อ n หารด้วย ทั้ง 3 และ 4 ลงตัว และพิมพ์ 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