Tuesday, March 13, 2012

PUZZLE GAME


#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf(“                                           Welcome 2 Puzzle Game\n”);
printf(“\n***************************************************************”\n);
printf(“\n                                                 Try Your Luck\n”);
printf(“\n                                     =========================\n”);
printf(“\nEnter Your Lucky Number\n”);
scanf(“%d”,&n);
if(n==1)
{
Printf(“\nCongratulation\n”);
printf(“\nYour money is doubled\n”);
}
else
if(n==2)
{
Printf(“\nCongratulation\n”);
printf(“\nYou won a 2lit pepsi bottle\n);
}
else
if(n==3)
{
Printf(“\nCongratulation\n”);
printf(“\nYou can play 1more chance\n”);
}
else
if(n==4)
{
Printf(“\nCongratulation\n”);
printf(“\nYou won a setwet gel\n”);
}
else
if(n==5)
{
Printf(“\nCongratulation\n”);
printf(“\nYou won a JACKPOT\n”);
}
else
if(n==6)
{
Printf(“\nCongratulation\n”);
printf(“\nYou won  Latest MP3 CDs\n”);
}
else
if(n==7)
{
Printf(“\nCongratulation\n”);
printf(“\nYou won a pencil box\n”);
}
else
if(n==8)
{
Printf(“\nCongratulation\n”);
printf(“\nYou won an Axe spray\n”);
}
else
if(n==9)
{
Printf(“\nCongratulation\n”);
printf(“\nYou won a Toy\n”);
}
else
if(n==10)
{
Printf(“\nCongratulation\n”);
printf(“\nYou won a Choclate  packet\n”);
}
else
printf(“\nSorry Try Again\n”);
printf(“\nThank You For Visiting Us\n”);
printf(“\n                                                 Have A Nice Day\n”);
printf(“===========================================================”);
getch();
}

No comments:

Post a Comment