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)
MCA 2nd Semester Practical Examination – Paper Summary|| PPU | Patna | MCA | Syllabus || Allrounder Sita Ram Sahu || Subscribe
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...
MCA 1st Semester Practical Examination Paper Summary || PPU | Patna | MCA | Syllabus || Allrounder Sita Ram Sahu || Subscribe
1MCACCC4 – PRACTICAL EXAMINATION (Paper Summary) This paper focuses on practical implementation of the concepts taught in other subjects...
Hindi Muhabra Generator web Application | Allrounder Sita Ram Sahu
Hindi Muhabra Generator Referral link Allrounder Sita Ram Sahu ...
No comments:
Post a Comment