Subscribe For Free Updates!

We'll not spam mate! We promise.

Sunday 26 August 2012

Displaying lucky game machine in C++


// 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;
}

Socializer Widget By CodingLovers
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments:

Post a Comment