✕
C++ ConditionalsCoding problems
C++ Conditionals: coding problems
Write a program that reads the input and prints the answer. Run checks it against every test, including hidden ones.
0 of 7 solved
A weather app shows whether a temperature reading is above, below or exactly at zero. Read one whole number and print one word:
positive,negativeorzero.**Constraints:** the number fits in a 32-bit signed
int.Input. One integer n.
Output. One word: positive, negative or zero.
Example 1 input
5
Output
positive
Example 2 input
-3
Output
negative