If Else Statement In C++
Code:
#include <iostream>
using namespace std;
int main()
{
int age;
cout<<" Enter Your Age"<<endl;
cin>>age;
if(age<18){
cout<<" You are Less Than 18"<<endl;
}
else if(age==18){
cout<<" You are 18"<<endl;
}
else{
cout<<" You are 18+"<<endl;
}
return 0;
}