Skip to content · ⁨コンテンツへスキップ⁩

Write one yourself · ⁨自分で書く⁩

English

Write one yourself

Write biggest(a, b) that gives back the larger of the two numbers. Do not use max.

Now all three parts are yours: the def line with its two names, an if/else inside it, and a return on each path. Every path must return something.

日本語

自分で書く

2つの数字のうち大きい方を返すbiggest(a, b)を書きます。maxは使わないでください。

これで3つの部分すべてを手に入れました:2つの名を持つdefの行、その中のif/else、および各パス上のreturnです。すべてのパスで何かを返す必要があります。

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP