CHECK_NUMBER - Editorial

[Practice](CodeChef CHECK_NUMBER)

Author: Nilprasad Birajdar
Tester: Rushikesh Thakare
Editorialist: Shadab Shaikh

DIFFICULTY:

CAKEWALK

PREREQUISITES:

None

PROBLEM:

You are Given an integer N.You Have to find that the number given is positive, Negative and Zero.

SOLUTIONS:

Setter's Solution

#include
using namespace std;

int main()
{
int i,T,N;
cin>>T;
for(i=1;i<=T;i++)
{
cin>>N;
if(N>0)
{
cout<<“Positive”<<endl;
}
else if(N<0)
{
cout<<“Negative”<<endl;
}
else
{
cout<<“Zero”<<endl;
}
}
return 0;
}