write a c++ program to find whether a number is positive or negative.

Source code-
#include<iostream>
using namespace std;
int main(){
int number;
cout<<“Enter a number “;
cin>>number;
if(number>0)
cout<<“Negative”;
else
cout<<“Positive”;
}
OUTPUT-
Enter a number 5
Negative

Leave a Comment

Your email address will not be published. Required fields are marked *

Hire a server Expert to resolve the issue Now.

Hire a server Expert to resolve the issue Now.

Resolve this issue in just 5$ from https://serverexpert.io

 

You have Successfully Subscribed!

Open chat