Write a program that reads an integer and prints whether it is positive, negative or zero.
Input will consist of a single number n where -100 ≤ n ≤ 100.
Output should contain a single line with either: positive
, negative
or zero
.
60
positive
-33
negative
try first: order1
try also: good1
try next: factorial1 triangle1
Copyright © 2020-2022 Rudy Matela
This text is available under the CC BY-SA 4.0 license.
Originally available on cscx.org/signum1