Wednesday 30 January 2013

gander in c++

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
char p;
cout<<"are yoiu male or female"<<endl;
cin>>p;
if(p=='m'||p=='M')
cout<<"you are male"<<endl;
else
if(p=='f'||p=='F')
cout<<"your are female"<<endl;
getch();
}

0 comments:

Post a Comment