solution

#include<iostream>
using namespace std;

int main()
{
 int a;
 cout<<"Enter any non-zero Number : ";
 cin>>a;
 (a>0)?cout<<"Number is positive":cout<<"Number is negative";
 
 
 return 0;
}

Post a Comment

Previous Post Next Post