Switch Statement Example Program
#include<iostream>
using namespace std;
int main()
{
int age;
cout<<"Enter your age? ";
cin>>age;
switch(age){
case 16:
cout<<"u are too young";
break;
default:
cout<<"you are elligible";
}
}
0 comments:
Post a Comment