Sunday, June 8, 2014

C++ Beginners Tutorial 6 - If and Else Statements

10:30 AM




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

if(age==20 && height==100)
{
cout<<"The age and height entered is correct"<<endl;
}
else
{
cout<<"The age and height entered is not correct"<<endl;
}
return 0;
}

Written by

We are one of the initiators of the development of information technology in understanding the need for a solution that is familiar and close to us.

0 comments:

Post a Comment

 

© 2013 Klick Dev. All rights resevered.

Back To Top