Positive or Negative Problem

Positive or Negative Problem — ExecCode School DSA Practice

Solve the Positive or Negative problem on ExecCode. Free online school DSA practice in Input & Basic Conditions. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given a whole number N. Your task is to check whether N is Positive, Negative, or Zero. Print Positive if N is greater than 0, Negative if N is less than 0, and Zero if N is equal to 0.

Examples

Input 10; Output Positive. Input -5; Output Negative

Constraints

-10^5 <= N <= 10^5

Practice Positive or Negative free on ExecCode. Browse DSA problems, topic map, and placement guides.