The bigger number
تحتاج هذه الصفحة إلى متصفح حديث (يدعم SharedArrayBuffer). يرجى تحديث Chrome أو Edge أو Firefox أو Safari إلى أحدث إصدار.
هذا يعتمد على درس لم تكمله بعد. قم بذلك الدرس أولاً:
أساسيات بايثون · اتخاذ القرارات →
English
The bigger number
Read two whole numbers a and b, one per line, with int(input()) (for example 8 and 15). Store the bigger one in biggest and print it. If they are equal, print equal instead.
A branch can set a variable, not only print. Give biggest a value on every path that prints it, or one path leaves it undefined and Python says NameError. Test the tie first: max alone cannot tell you that the two numbers were equal.
الصعوبة 1/5 · 100 عملة + مكافأة صغيرة عند الإنجاز الأول اليوم
Read two whole numbers a و b, one per line, with int(input()). Store the bigger one in biggest and print it. If they are equal, print equal instead.
اضغط تشغيل لرؤية المخرجات هنا.