void main()
{
int age;
clrscr();
cout<<"Enter Age :";
cin>>age;
if(age>0 && age<13)
cout<<"You Can Get Free Entrance";
else if(age>=14 && age<22)
cout<<"You haved to pay Half ticket 250 Rupees";
else if(age>22 && age<50)
cout<<"You Have To Pay Full Amount Of Ticket";
else
cout<<"Bogus Age";
getch();
}
Friday, April 18, 2014
Subscribe to:
Post Comments (Atom)







No comments:
Post a Comment