Divisible by both · قابل للقسمة على كلا العددين
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.
مقبول على كلاهما
n هو 12. اطبع yes عندما يقبل n القسمة بالضبط على كلا 3 و4، وno غير ذلك.
هذا هو الشكل الذي يُبنى عليه اختبار السنوات الكبيسة: سؤال باقي القسمة، == 0، وand بين أحدهما. يجب أن يكون كل طرف سؤالاً كاملاً — n % 3 == 0 and n % 4 == 0.
n is 12. Print yes when n divides exactly by both 3 and 4, and no otherwise. · n هو 12. اطبع yes عندما يقبل n القسمة بالضبط على كلا 3 و4، وno غير ذلك.
Click Run to see the output here. · اضغط تشغيل لرؤية المخرجات هنا.