#include<iostream>
using namespace std;
int main()
{
char gender;
cout<<"Enter your gender";
cin>>gender;
switch(gender)
{
case'f':
cout<<"The person is female";
break;
case'F':
cout<<"The Person is female";
break;
case'm':
cout<<"The person is male";
break;
case'M':
cout<<"The person is male";
break;
default:
cout<<"None";
}
return 0;
}
No comments:
Post a Comment