Divisible by both · Divisible par les deux
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.
Divisible par les deux
n est 12. Imprimez yes quand n se divise exactement par les deux 3 et 4, et no sinon.
Voici la structure à partir de laquelle est conçu un test d'année bissextile : une question sur le reste, == 0, et and entre deux d'entre eux. Chaque côté doit être une question entière — n % 3 == 0 and n % 4 == 0.
n is 12. Print yes when n divides exactly by both · les deux 3 and · et 4, and no otherwise. · n est 12. Imprimez yes quand n se divise exactement par les deux 3 et 4, et no sinon.
Click Run to see the output here. · Cliquez sur Exécuter pour voir le résultat ici.