IF & ELSE CONDITION STATEMENTS
#include<iostream>
#include<iomanip>
using namespace std;
//..................IF-ELSE-CONDITION............//
int main(){
cout<<"This is tutorial 9 if-else conditions and conditinal statements"<<endl;
int age;
cout<<"Tell me your age"<<endl;
cin>>age;
if(age>18){
cout<<"You can come to my party"<<endl;
}
else if(age==18){
cout<<"You can come to my party"<<endl;
}
else{
cout<<"Sorry you are too young for this party"<<endl;
}
return 0;
}//...............SELECTION CONTROL STRUCTURE.............//
Comments
Post a Comment