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

Is it positive?

English

Is it positive?

A number is positive when it is greater than 0. The test n > 0 is already True or False — you can return it directly.

日本語

正の数か?

0 より大きい数は正です。テスト n > 0 は既に True または False になっていますので、そのまま返しても構いません。

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

IGCSE, A-Level & AP