Skip to content · ⁨Lompat ke konten⁩

Divisible by both · ⁨Dapat dibagi keduanya⁩

English

Divisible by both

n is 12. Print yes when n divides exactly by both 3 and 4, and no otherwise.

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.

Bahasa Indonesia

Terbagi oleh keduanya

n adalah 12. Cetak yes ketika n habis dibagi oleh 3 dan 4, dan no untuk kondisi lainnya.

Ini adalah bentuk dasar tes tahun kabisat: pertanyaan sisa, == 0, dan and di antara keduanya. Setiap sisi harus merupakan pertanyaan utuh — n % 3 == 0 and n % 4 == 0.

Log in or create account · ⁨Masuk atau buat akun⁩

IGCSE, A-Level & AP