// Displaying lucky game machine
// Programmer name: Sohail ahmed
// Date: 16/03/2010
#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int num;
cout<<"\n***A lucky number game***\n\n";
cout<<"\nEnter any number: ";
cin>>num;
if((num%2!=0) && (num>=20 && num<=30) && (num * num<=250))
{
cout<<"\n*******You Win********";
}
else
{
cout<<"\n***You LOSS***";
}
getch();
return 0;
}
0 comments:
Post a Comment