#include "stdio.h"
#include "conio.h"
void main()
{
char a;
clrscr();
printf ("Enter a Gender");
scanf ("%c",&a);
if (a=='m' || a=='M' )
{
printf ("Male");
}
else if (a=='f' || a=='F' )
{
printf ("Female");
}
else
{
printf ("invaled Entry");
}
getch();
}
0 comments:
Post a Comment