#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;
}
Sunday, June 8, 2014
C++ Beginners Tutorial 6 - If and Else Statements
10:30 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment