両方によって割り切れるか
このページには最新のブラウザ(SharedArrayBuffer対応)が必要です。Chrome、Edge、Firefox、Safariを最新バージョンに更新してください。
これはまだ完了していないレッスンの先にある内容です。まずはそのレッスンを済ませてください:
Python Basics · 判断の作成 →
English
Divisible by both
Read a whole number n with int(input()) (for example 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.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
int(input()) で整数 n (例: 12)を入力してください。n が 両方 3 と 4 で正確に割り切れる場合に yes を出力し、それ以外の場合は no を出力してください。
実行ボタンをクリックして出力を確認してください。