5th Simple C++ Program - Tutorial

ssendi By ssendi, 12th Apr 2012 | Follow this author | RSS Feed | Short URL http://nut.bz/3dfqk7z8/
Posted in Wikinut>Guides>Technology>Computer Software

In this program we use if comand, and it checks the condition it will go through, if condition is not true than it will jump that block of comands...

5th Simple C++ Program - Tutorial

/*
In this program we use if comand, and it checks the condition it will go through, if condition is not true than it will jump that block of comands...

if(condition){
block of comands;
}
*/


#include <iostream>
using namespace std;
int main()
{
int number;
cout<<"Please enter number: ";
cin>>number;
if(number>10){
cout<<"The number that you entered is bigger than 10"<<endl;
}
else{
cout<<"The number that you entered is not bigger than 10"<<endl;
}
cout<<endl<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}



Here you can find more C++ programs.....

Tags

Int, Java, Java Applet, Java Application Development, Java Main Method, Java Programmers, Java Programming, Java Script, Java Web Developer, Java Web Development, Javascript, Main, Program, Programmed Specially, Programmes, Programming, Programming In C, Programming Software, Programs, Tutor, Tutor Jobs, Tutorial, Tutorials, Tutoring, Tutoring On The Internet, Tutoring On-Line, Tutors, Value

Meet the author

author avatar ssendi
I'm from Bosnia, and I like computer languages...
On this site I'will mainly write codes for programs, in C++, Java, and HTML...
I also write at http://www.expertscolumn.com

Share this page

moderator Steve Kinsman moderated this page.
If you have any complaints about this content, please let us know

Comments

author avatar Denise O
29th Jun 2012 (#)

Thank you for sharing.:)

Reply to this comment

Add a comment
Username
Can't login?
Password