Allrounder SITA RAM SAHU
Welcome to my blog. Stay connected with us for different types of information.
menu
Home
YouTube
Twitter
Instagram
Facebook
Home
Program 04 | Print Given Number is Positive(+) or Negative(-) in C++ | using Dev C++ IDE | Allrounder SITA RAM SAHU | C++ With Sita Ram Sahu
YouTube
Facebook
Instagram
Twitter
Linkedin
SUBSCRIBE
C++ Program
// Open Dev C++ Application/Software on Your Laptop or PC.
// Question No.01. Write a program in C++ to Check the Number is Positive(+) or Negative(-)"
.
#include<iostream>
using namespace std;
int main()
{
int num;
cout<<"Enter the Number"<<endl;
cin>>num;
if(num>0)
{
cout<<"Number is Positive(+) "<<n<<endl;
}
else if (num<0)
{
cout<<"Number is Negative(-) "<<m<<endl;
}
else
{
cout<<"Number is Not equal to Positive or Negative"<<endl;
}
return 0;
}
Output:
Enter the Number
47
Number is Positive(+)
Allrounder SITA RAM SAHU
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
हिंदी भाषा की उत्पति एवं विकास पर संक्षेप विवरण | क्या आप हिंदी में जानकारी प्राप्त करना चाहते है तो इस blog को पूरा पढ़े | Allrounder Sita Ram Sahu blog | ceo kaise bane?
Application Status Abbreviation DRCC Application Stage Stage Meaning Whom to Contact BSCC
sitaramsahu.blogspot.com Application Status Abbreviation S/N Application Stage Stage Meaning Whom to Contact 1 New Apps New Applicatio...
हिंदी भाषा की उत्पति एवं विकास पर संक्षेप विवरण | क्या आप हिंदी में जानकारी प्राप्त करना चाहते है तो इस blog को पूरा पढ़े | Allrounder Sita Ram Sahu blog | ceo kaise bane?
👉क्या आप हिंदी में जानकारी प्राप्त करना चाहते है, तो इस blog को पूरा पढ़े नमस्कार मैं सीता राम साहु आप लोगो को आज हिंदी में कुछ जानकारी स...
What is Entrepreneur ? | How I Become Entrepreneur | How Compare Entrepreneur to Network Marketing | You know about Krishna Arora | It is a an Entrepreneur | Krishna Arora is Founder of Achivers Club | Allrounder SITA RAM SAHU |
| What is Entrepreneur ? | | How I Become Entrepreneur ? | | How Compare Entrepreneur to Network Marketing | | You know about Krishna A...
No comments:
Post a Comment