Sunday, June 8, 2014

C++ Beginners Tutorial 6 - If and Else Statements

#include <iostream>
using namespace std;
int main()
    int age;
    int height;
    cout<<"Please enter the Age"<<endl;
     cout<<"Please enter the Height"<<endl;

    if(age==20 && height==100)
        cout<<"The age and height entered is correct"<<endl;
        cout<<"The age  and height entered is not correct"<<endl;
    return 0;
IT Certification Category (English)640x480

Partner Sites

Top Online Courses From ProgrammingKnowledge

Python Course
Java Course
Bash Course
Linux Course
C Course
C++ Course
PHP Course
Android Course
C# Course
JavaFx Course
NodeJs Course
Jenkins Course
Scala Course
Bootstrap Course
MongoDB Course
QT C++ GUI Course