PRF0101 - Positive, negative or zero

no tags 

Write a program that allows user to enter any integer named a and then checks that the number entered is positive, negative, or zero.

Example 1:

Please enter any integer: 2

2 is a positive number

Example 2:

Please enter any integer: -9

-9 is a negative number

Example 3:

Please enter any integer: 0

The number entered is zero

 

Input

Allow user input a number t.

Constraints

  • -100 < t ≤ 100

Output

check t is positive, negative or zero, show the result

Example

Input:
1

Output:
Please enter any integer: 1 is a positive number

hide comments
Simes: 2023-02-14 22:26:06

Unlike the other examples, there's a space after the colon.

Mostafa 36a2: 2022-06-06 10:53:29

You should output "Please enter any integer: " first


Added by:khanhvh
Date:2020-10-15
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All
Resource:PRF