SOURCE CODE OUTPUT
#include<iostream>
using namespace std;
int main()
{
int n;
cout<<"Enter the number ";
cin>>n;
if(n>=0)
cout<<"Number is positive";
else
cout<<"Number is negative";
return 0;
}
using namespace std;
int main()
{
int n;
cout<<"Enter the number ";
cin>>n;
if(n>=0)
cout<<"Number is positive";
else
cout<<"Number is negative";
return 0;
}
Any questions regarding to program please write in comments.
No comments:
Post a Comment