All About Programming
Our Team
Home
C++/C
OOP
Downloads
Softwares
Programs
Games
Web Development
HTML5
CSS3
JavaScript
Projects
C++
OOP
Uncategorized
Wednesday, 8 July 2015
Home
»
C++
» Write a c++ program that tell us the number is positive or negative
Write a c++ program that tell us the number is positive or negative
By
waqar
11:02
No comments
#include<iostream>
using namespace std;
int main()
{
int a;
cout<<"enter a num: ";
cin>>a;
if(a>0){
cout<<"num is Positive:"<<endl;
}else
if(a<0){
cout<<"num is -ve: "<<endl;
}else
cout<<"num is zero"<<endl;
}
Email This
BlogThis!
Share to X
Share to Facebook
← Newer Post
Older Post →
Home
0 comments:
Post a Comment
I am the Author
Popular
Tags
Blog Archives
Followers
Difference b/w HTML4 & HTML5
Snake Game in C++ with Loading
Free Download Decrption: This is Snake game Project in C++ with amazing Functionality of loading it also tell...
Shooting Game in cpp
Free Download
Sending Form Data to the Server
The method attribute can take one of two values, either get or post, corresponding to the HTTP methods used to send the form data. If the ...
Telephone Directory Project in cpp
Free Download
Introduction of C++
C++ C++ is actually a Programming Language Also a General Purpose language.The Most interesting thing is many Softwares based on This lan...
Introduction to Javascript
Javascript: It is a Programming Language that is very powerfull Language.Developer usually use Javascript where HTML not works properly.N...
Tic Tac Toe
Free Download
Javascript Objects Example
<!DOCTYPE html> <html> <body > <script> var person={ firstname : "John", lastname : ...
Artificial Intelligence
Introduction: Artificial intelligence mostly is about a machine is working automaticaly or not? so it when we say automatic then its obvi...
About Me
waqar
View my complete profile
Blog Archive
►
2016
(81)
►
December
(3)
►
January
(78)
▼
2015
(20)
▼
July
(20)
Waqar Khan KPSI} WAQAR & FAHEEM
Pattern Printing in C++
Daimond pattern by inputing number of rows in C++
Amazing Daimond in C++
Pattern in C++
Write a c++ program that tell us the number is pos...
How to find largest number in C++
Count number of line in c++
Alphabet to ASCII in C++
prime number in c++
Ascending or descending Order in C++
Even/Odd in c++
Simple Calculator in C++
Keyboard Shorcuts (Microsoft Windows)
Switch Statement Example Program
Gotoxy concept with example program
Calculatar in C++
How to make a diamond in C++?
Program using Gotoxy
How to merge two arrays?
Waqar khan. Powered by
Blogger
.
Contact us
Name
Email
*
Message
*
Tags
Artificial Intelligence
C++
CSS3
HTML5
JavaScript
oop
Project
Video of the Day
Know us
Social
Newsletter
Labels
Artificial Intelligence
C++
CSS3
HTML5
JavaScript
oop
Project
Blog Archive
►
2016
(81)
►
December
(3)
►
January
(78)
▼
2015
(20)
▼
July
(20)
Waqar Khan KPSI} WAQAR & FAHEEM
Pattern Printing in C++
Daimond pattern by inputing number of rows in C++
Amazing Daimond in C++
Pattern in C++
Write a c++ program that tell us the number is pos...
How to find largest number in C++
Count number of line in c++
Alphabet to ASCII in C++
prime number in c++
Ascending or descending Order in C++
Even/Odd in c++
Simple Calculator in C++
Keyboard Shorcuts (Microsoft Windows)
Switch Statement Example Program
Gotoxy concept with example program
Calculatar in C++
How to make a diamond in C++?
Program using Gotoxy
How to merge two arrays?
Recent Posts
Text Widget
Download
0 comments:
Post a Comment