The bigger number
此页面需较新浏览器(支持 SharedArrayBuffer)。请升级 Chrome、Edge、Firefox 或 Safari 至最新版本。
此任务基于您尚未完成的课程。请先完成以下课程:
Python 基础 · 做出判断 →
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 and b, one per line, with int(input()). Store the bigger one in biggest and print it. If they are equal, print equal instead.
点击“运行”查看此处输出。