Divisible by both
このページには最新のブラウザ(SharedArrayBuffer対応)が必要です。Chrome、Edge、Firefox、Safariを最新バージョンに更新してください。
これはまだ完了していないレッスンの先にある内容です。まずはそのレッスンを済ませてください:
Python Basics · Making decisions →
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 コイン + 今日初回達成時の小ボーナス
Read a whole number n with int(input()) (for example 12). Print yes when n divides exactly by 両方 3 かつ 4, and no otherwise.
実行ボタンをクリックして出力を確認してください。