Add to Favorites    Make Home Page 1232 Online  
 Language Categories  
 Our Services  

Home » C Home » Games and Graphics Home » hum banayege crorepati

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title hum banayege crorepati
Author ankush dadhwal
Author Email ankush20_jiet [at] rediffmail.com
Description contains objective type gk questions
Category C » Games and Graphics
Hits 391467
Code Select and Copy the Code
#include <graphics.h> #include<stdio.h> #include<conio.h> void ques1(); int a[20],ct=0; int i,j,k,w=0; void ques2(); void ques3(); void ques4(); void ques5(); void ques6(); void ques7(); void ques8(); void ques9(); void ques10(); void ques11(); void count(); void check(); void printl(); int make(); void main() {char name[20];int k; clrscr(); printf(" Hum Banayege Crorepati:BY ANKUSH DADHWAL"); printf(" HI!THIS IS ANKUSH DADHWAL FROM HBC"); delay(1500); printf(" WHAT'S YOUR GOOD NAME "); scanf("%s",&name); for(k=0;k<=5;k++) {if(name[k]=='0'||name[k]=='2'||name[k]=='3'||name[k]=='4'||name[k]=='5'|| name[k]=='6'||name[k]=='7'||name[k]=='8'||name[k]=='9'||name[k]=='0') {printf(" YOU ARE NOT JAMES BOND");delay(1000);exit();}} printf(" HI!"); puts(name); delay(2000); clrscr(); printf(" HERE COMES YOUR FIRST QUESTION "); delay(1000); ques1(); getch(); } void ques1() {int ch,j,i=0;char NUM[20];char CH;int x=0,y=0,z=0; printl(40); printf(" WHO WON THE WORLD CUP(CRICKET)-2003"); delay(2000); printf(" YOUR OPTIONS ARE"); printf(" 1.INDIA 2.AUSTRALIA 3.PAKISTAN 4.ENGLAND "); delay(1000); printl(); printf(" LIFELINES "); ld: if (x==1) printf(" #.FIFTY-FIFTY"); else printf(" 5.FIFTY-FIFTY"); if (y==1) printf(" #.PHONO FRIEND"); else printf(" 6.PHONO FRIEND"); if (z==1) printf(" #.AUDIENCE POLL"); else printf(" 7.AUDIENCE POLL"); printf(" 8.**QUIT** "); rid: scanf("%d",&ch); if(ch==5||ch==6||ch==7||ch==8) { i++; a[i]=ch; goto read; } else {printf(" SURE LOCK KAR DIYA JAYE(Y/N)"); fflush(stdin); scanf("%c",&CH);} if(CH=='Y'||CH=='y') read: switch(ch) { case 2:printf(" OKAY COMPUTER PLEASE LOCK 2.AUSTRALIA "); delay(2000);printf("a"); printf(" CORRECT ANSWER WELL PLAYED"); delay(2000); printf(" I THINK YOU ENJOY WATCHING CRICKET"); delay(1000); ct++; printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else {count();delay(1000); ques2();} case 5:x=1;for(i=1;i<=3;i++) a[i]=ch; delay(1000); printf(" USE THE LIFELINE FIFTY-FIFTY"); delay(1000); printf(" COMPUTER PLEASE ERASE TWO WRONG OPTIONS"); delay(2000); printf("a"); clrscr(); printf(" HERE COMES YOUR FIRST QUESTION "); printl(40); printf(" WHO WON THE WORLD CUP(CRICKET)-2003"); printf(" YOUR OPTIONS ARE"); six: printf(" 2.AUSTRALIA 4.ENGLAND "); printl(); printf(" LIFELINES "); goto ld; case 6:y=1;delay(1000);for(i=1;i<=3;i++) a[i]=ch; printf(" PLEASE DIAL THE NUMBER "); scanf("%s",&NUM); delay(1000); printf(" DIALING NUMBER %s",NUM);printf("a"); delay(1000); printf(" PLEASE RECHARGE YOUR SET");delay(2000); clrscr(); printf(" HERE COMES YOUR FIRST QUESTION "); printl(); printf(" WHO WON THE WORLD CUP(CRICKET)-2003"); printf(" YOUR OPTIONS ARE"); {if(x==1) goto six;} printf(" 1.INDIA 2.AUSTRALIA 3.PAKISTAN 4.ENGLAND "); printl(); printf(" LIFELINES "); goto ld; case 7:z=1;delay(1000); for(i=1;i<=3;i++) a[i]=ch;if(x==1) { printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. -% 2. 77% 3. -% 4. 33% ");goto sd;} printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 24% 2. 67% 3. 5% 4. 4% "); sd: delay(5000);clrscr(); printf(" HERE COMES YOUR FIRST QUESTION "); printl(40); printf(" WHO WON THE WORLD CUP(CRICKET)-2003"); printf(" YOUR OPTIONS ARE"); {if(x==1) {printf(" 2.AUSTRALIA 4.ENGLAND "); printl(); printf(" LIFELINES ");goto ld; } } for(i=1;i<=3;i++) a[i]=7; printf(" 1.INDIA 2.AUSTRALIA 3.PAKISTAN 4.ENGLAND "); printl(); printf(" LIFELINES "); goto ld; case 8: printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else goto rid; case 1:printf(" OKAY COMPUTER PLEASE LOCK 1.INDIA "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 3:printf(" OKAY COMPUTER PLEASE LOCK 3.PAKISTAN "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 4:printf(" OKAY COMPUTER PLEASE LOCK 4.ENGLAND "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); default:printf(" CHECK YOUR CHOICE "); goto rid; }else goto rid; } void ques3() { int ch,j,i;char NUM[20];char CH;int x=0,y=0,z=0; clrscr();printf(" ");printf(" "); printl(40); printf(" ATHELETE OF WHICH COUNTRY WON MAXIMUM GOLD MEDALS AT ATHENS"); delay(2000); printf(" YOUR OPTIONS ARE"); printf(" 1.CHINA 2.AUSTRALIA 3.USA 4.ENGLAND "); delay(1000); printl(); printf(" LIFELINES "); ld: for(i=1;i<=3;i++) { if(a[i]==5) x=1; if(a[i]==6) y=1; if(a[i]==7) z=1;} if (x==1) printf(" #.FIFTY-FIFTY"); else printf(" 5.FIFTY-FIFTY"); if (y==1) printf(" #.PHONO FRIEND"); else printf(" 6.PHONO FRIEND"); if (z==1) printf(" #.AUDIENCE POLL"); else printf(" 7.AUDIENCE POLL"); printf(" 8.**QUIT** "); rid: scanf("%d",&ch); if(ch==5) {if(x==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==6) {if(y==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==7) {if(z==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==8) goto read; else {printf(" SURE LOCK KAR DIYA JAYE(Y/N)"); fflush(stdin); scanf("%c",&CH);} if(CH=='Y'||CH=='y') read: switch(ch) { case 3:printf(" OKAY COMPUTER PLEASE LOCK 3.USA "); delay(2000);printf("a"); printf(" CORRECT ANSWER WELL PLAYED"); delay(2000); ct++; printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else {count();delay(1000); ques4();} break; case 5:a[4]=5; delay(1000); printf(" USE THE LIFELINE FIFTY-FIFTY"); delay(1000); printf(" COMPUTER PLEASE ERASE TWO WRONG OPTIONS"); delay(2000); printf("a"); x=1; clrscr(); printf(" "); printf(" "); printl(40); printf(" ATHELETE OF WHICH COUNTRY WON MAXIMUM GOLD MEDALS AT ATHENS"); printf(" YOUR OPTIONS ARE");j=2; six: printf(" 2.AUSTRALIA 3.USA "); printl(); printf(" LIFELINES "); goto ld; case 6: delay(1000);a[5]=6; printf(" PLEASE DIAL THE NUMBER "); scanf("%s",&NUM); delay(1000); printf(" DIALING NUMBER %s",NUM);printf("a"); delay(1000); printf(" ALL THE LINES OF THIS ROUTE ARE BUSY PLEASE TRY AFTER SOME TIME"); delay(2000); clrscr(); printf(" ");printf(" "); printl(); printf(" ATHELETE OF WHICH COUNTRY WON MAXIMUM GOLD MEDALS AT ATHENS"); printf(" YOUR OPTIONS ARE"); if(j==2) {y=1; goto six;} printf(" 1.CHINA 2.AUSTRALIA 3.USA 4.ENGLAND "); printl(); printf(" LIFELINES ");y=1; goto ld; case 7:a[6]=7; delay(1000);if(j==2){ printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. -% 2. 75% 3. 25% 4. -% ");goto sd;} printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 24% 2. 67% 3. 5% 4. 4% "); sd: delay(5000);clrscr(); printf(" ");printf(" "); printl(40); printf(" ATHELETE OF WHICH COUNTRY WON MAXIMUM GOLD MEDALS AT ATHENS"); printf(" YOUR OPTIONS ARE"); if(j==2) {printf(" 2.AUSTRALIA 3.USA "); printl(); printf(" LIFELINES ");z=1; goto ld;} printf(" 1.CHINA 2.AUSTRALIA 3.USA 4.ENGLAND "); printl(); printf(" LIFELINES ");z=1; goto ld; case 8: printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else goto rid; case 1:printf(" OKAY COMPUTER PLEASE LOCK 1.CHINA "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 2:printf(" OKAY COMPUTER PLEASE LOCK 2.AUSTRALIA "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 4:printf(" OKAY COMPUTER PLEASE LOCK 4.ENGLAND "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); default:printf(" CHECK YOUR CHOICE "); goto rid; }else goto rid; } void ques2() { int ch,j,i;char NUM[20];char CH;int x=0,y=0,z=0; clrscr();printf(" ");printf(" "); printl(40); printf(" WHICH COUNTRY DOES NOT HAVE THE RIGHT OF VITO"); delay(2000); printf(" YOUR OPTIONS ARE"); printf(" 1.INDIA 2.CHINA 3.USA 4.ENGLAND "); delay(1000); printl(); printf(" LIFELINES "); ld: for(i=1;i<=6;i++) { if(a[i]==5) x=1; if(a[i]==6) y=1; if(a[i]==7) z=1;} if (x==1) printf(" #.FIFTY-FIFTY"); else printf(" 5.FIFTY-FIFTY"); if (y==1) printf(" #.PHONO FRIEND"); else printf(" 6.PHONO FRIEND"); if (z==1) printf(" #.AUDIENCE POLL"); else printf(" 7.AUDIENCE POLL"); printf(" 8.**QUIT** "); rid: scanf("%d",&ch); if(ch==5) {if(x==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==6) {if(y==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==7) {if(z==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==8) goto read; else {printf(" SURE LOCK KAR DIYA JAYE(Y/N)"); fflush(stdin); scanf("%c",&CH);} if(CH=='Y'||CH=='y') read: switch(ch) { case 1:printf(" OKAY COMPUTER PLEASE LOCK 1.INDIA "); delay(2000);printf("a"); printf(" CORRECT ANSWER WELL PLAYED"); delay(1000); ct++; printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check();exit();} else{count();delay(1000); ques3();} case 5:a[4]=5; delay(1000); printf(" USE THE LIFELINE FIFTY-FIFTY"); delay(1000); printf(" COMPUTER PLEASE ERASE TWO WRONG OPTIONS"); delay(2000); printf("a"); x=1; clrscr(); printf(" "); printf(" "); printl(40); printf(" WHICH COUNTRY DOES NOT HAVE THE RIGHT OF VITO"); printf(" YOUR OPTIONS ARE");j=2; six: printf(" 1.INDIA 4.ENGLAND "); printl(); printf(" LIFELINES "); goto ld; case 6:a[5]=6; delay(1000); printf(" PLEASE DIAL THE NUMBER "); scanf("%s",&NUM); delay(1000); printf(" DIALING NUMBER %s",NUM);printf("a"); delay(1000); printf(" ALL THE LINES OF THIS ROUTE ARE BUSY PLEASE TRY AFTER SOME TIME"); delay(2000); clrscr(); printf(" ");printf(" "); printl(); printf(" WHICH COUNTRY DOES NOT HAVE THE RIGHT OF VITO"); printf(" YOUR OPTIONS ARE"); if(j==2) {y=1; goto six;} printf(" 1.INDIA 2.CHINA 3.USA 4.ENGLAND "); printl(); printf(" LIFELINES ");y=1; goto ld; case 7:a[6]=7; delay(1000);if(j==2) {printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 86% 2. -% 3. -% 4. 14% ");goto sd;} printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 56% 2. 27% 3. 1% 4. 16% "); sd: delay(5000);clrscr(); printf(" ");printf(" "); printl(40); printf(" WHICH COUNTRY DOES NOT HAVE THE RIGHT OF VITO"); printf(" YOUR OPTIONS ARE"); if(j==2) {printf(" 1.INDIA 4.ENGLAND "); printl(); printf(" LIFELINES ");z=1; goto ld;} printf(" 1.INDIA 2.CHINA 3.USA 4.ENGLAND "); printl(); printf(" LIFELINES ");z=1; goto ld; case 8: printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else goto rid; case 2:printf(" OKAY COMPUTER PLEASE LOCK 2.CHINA "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 3:printf(" OKAY COMPUTER PLEASE LOCK 3.USA "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 4:printf(" OKAY COMPUTER PLEASE LOCK 4.ENGLAND "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); default:printf(" CHECK YOUR CHOICE "); goto rid; }else goto rid; } void printl() {int i; for(i=0;i<80;i++) printf("1"); } void ques4() { int ch,j,i;char NUM[20];char CH;int x=0,y=0,z=0; clrscr();printf(" ");printf(" "); printl(40); printf(" WH0 IS THE FIRST INDIAN TO WIN AN OLYMPIC MEDAL"); delay(2000); printf(" YOUR OPTIONS ARE"); printf(" 1.K.MALESHWARI 2.LEANDER PAES 3.R.S.RATHORE 4.J.D.YADAV "); delay(1000); printl(); printf(" LIFELINES "); ld: for(i=1;i<=6;i++) { if(a[i]==5) x=1; if(a[i]==6) y=1; if(a[i]==7) z=1;} if (x==1) printf(" #.FIFTY-FIFTY"); else printf(" 5.FIFTY-FIFTY"); if (y==1) printf(" #.PHONO FRIEND"); else printf(" 6.PHONO FRIEND"); if (z==1) printf(" #.AUDIENCE POLL"); else printf(" 7.AUDIENCE POLL"); printf(" 8.**QUIT** "); rid: scanf("%d",&ch); if(ch==5) {if(x==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==6) {if(y==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==7) {if(z==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==8) goto read; else {printf(" SURE LOCK KAR DIYA JAYE(Y/N)"); fflush(stdin); scanf("%c",&CH);} if(CH=='Y'||CH=='y') read: switch(ch) { case 4:printf(" OKAY COMPUTER PLEASE LOCK 4.J.D.YADAV "); delay(2000);printf("a"); printf(" CORRECT ANSWER WELL PLAYED"); delay(1000); ct++; printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();}else{count();ques5();} case 5:a[4]=5; delay(1000); printf(" USE THE LIFELINE FIFTY-FIFTY"); delay(1000); printf(" COMPUTER PLEASE ERASE TWO WRONG OPTIONS"); delay(2000); printf("a"); x=1; clrscr(); printf(" "); printf(" "); printl(40); printf(" WH0 IS THE FIRST INDIAN TO WIN AN OLYMPIC MEDAL"); printf(" YOUR OPTIONS ARE");j=2; six: printf(" 2.LEANDER PAES 4.J.D.YADAV "); printl(); printf(" LIFELINES "); goto ld; case 6:a[5]=6; delay(1000); printf(" PLEASE DIAL THE NUMBER "); scanf("%s",&NUM); delay(1000); printf(" DIALING NUMBER %s",NUM);printf("a"); delay(1000); printf(" ALL THE LINES OF THIS ROUTE ARE BUSY PLEASE TRY AFTER SOME TIME"); delay(2000); clrscr(); printf(" ");printf(" "); printl(); printf(" WH0 IS THE FIRST INDIAN TO WIN AN OLYMPIC MEDAL"); printf(" YOUR OPTIONS ARE"); if(j==2) {y=1; goto six;} printf(" 1.K.MALESHWARI 2.LEANDER PAES 3.R.S.RATHORE 4.J.D.YADAV "); printl(); printf(" LIFELINES ");y=1; goto ld; case 7:a[6]=7; delay(1000);if(j==2) {printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. -% 2. 54% 3. -% 4. 46% ");goto sd;} printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 16% 2. 27% 3. 10% 4. 47% "); sd: delay(5000);clrscr(); printf(" ");printf(" "); printl(40); printf(" WH0 IS THE FIRST INDIAN TO WIN AN OLYMPIC MEDAL"); printf(" YOUR OPTIONS ARE"); if(j==2) {printf(" 2.LEANDER PAES 4.J.D.YADAV "); printl(); printf(" LIFELINES ");z=1; goto ld;} printf(" 1.K.MALESHWARI 2.LEANDER PAES 3.R.S.RATHORE 4.J.D.YADAV "); printl(); printf(" LIFELINES ");z=1; goto ld; case 8: printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else goto rid; case 2:printf(" OKAY COMPUTER PLEASE LOCK 2.LEANDER PAES "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 3:printf(" OKAY COMPUTER PLEASE LOCK 3.R.S.RATHORE "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 1:printf(" OKAY COMPUTER PLEASE LOCK 1.K.MALESHWARI "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); default:printf(" CHECK YOUR CHOICE "); goto rid; }else goto rid; } void ques5() { int ch,j,i;char NUM[20];char CH;int x=0,y=0,z=0; clrscr();printf(" ");printf(" "); printl(40); printf(" THE WORD HARDLINE FINAL IS ASSOCIATED WITH WHICH GAME"); delay(2000); printf(" YOUR OPTIONS ARE"); printf(" 1.ICE HOCKEY 2.BASKETBALL 3.HOCKEY 4.BASEBALL "); delay(1000); printl(); printf(" LIFELINES "); ld: for(i=1;i<=6;i++) { if(a[i]==5) x=1; if(a[i]==6) y=1; if(a[i]==7) z=1;} if (x==1) printf(" #.FIFTY-FIFTY"); else printf(" 5.FIFTY-FIFTY"); if (y==1) printf(" #.PHONO FRIEND"); else printf(" 6.PHONO FRIEND"); if (z==1) printf(" #.AUDIENCE POLL"); else printf(" 7.AUDIENCE POLL"); printf(" 8.**QUIT** "); rid: scanf("%d",&ch); if(ch==5) {if(x==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==6) {if(y==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==7) {if(z==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==8) goto read; else {printf(" SURE LOCK KAR DIYA JAYE(Y/N)"); fflush(stdin); scanf("%c",&CH);} if(CH=='Y'||CH=='y') read: switch(ch) { case 3:printf(" OKAY COMPUTER PLEASE LOCK 3.HOCKEY "); delay(2000);printf("a"); printf(" CORRECT ANSWER WELL PLAYED"); delay(1000); ct++; printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();}else{count(); if(x==1) ques8();else ques6(); } case 5:a[4]=5; delay(1000); printf(" USE THE LIFELINE FIFTY-FIFTY"); delay(1000); printf(" COMPUTER PLEASE ERASE TWO WRONG OPTIONS"); delay(2000); printf("a"); x=1; clrscr(); printf(" "); printf(" "); printl(40); printf(" THE WORD HARDLINE FINAL IS ASSOCIATED WITH WHICH GAME"); printf(" YOUR OPTIONS ARE");j=2; six: printf(" 2.BASKETBALL 3.HOCKEY "); printl(); printf(" LIFELINES "); goto ld; case 6:a[5]=6; delay(1000); printf(" PLEASE DIAL THE NUMBER "); scanf("%s",&NUM); delay(1000); printf(" DIALING NUMBER %s",NUM);printf("a"); delay(1000); printf(" ALL THE LINES OF THIS ROUTE ARE BUSY PLEASE TRY AFTER SOME TIME"); delay(2000); clrscr(); printf(" ");printf(" "); printl(); printf(" THE WORD HARDLINE FINAL IS ASSOCIATED WITH WHICH GAME"); printf(" YOUR OPTIONS ARE"); if(j==2) {y=1; goto six;} printf(" 1.ICE HOCKEY 2.BASKETBALL 3.HOCKEY 4.BASEBALL "); printl(); printf(" LIFELINES ");y=1; goto ld; case 7:a[6]=7; delay(1000);if(j==2) {printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. -% 2. 50% 3. 50% 4. -% ");goto sd;} printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 16% 2. 27% 3. 30% 4. 27% "); sd: delay(5000);clrscr(); printf(" ");printf(" "); printl(40); printf(" THE WORD HARDLINE FINAL IS ASSOCIATED WITH WHICH GAME"); printf(" YOUR OPTIONS ARE"); if(j==2) {printf(" 2.BASKETBALL 3.HOCKEY "); printl(); printf(" LIFELINES ");z=1; goto ld;} printf(" 1.ICE HOCKEY 2.BASKETBALL 3.HOCKEY 4.BASEBALL "); printl(); printf(" LIFELINES ");z=1; goto ld; case 8: printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else goto rid; case 2:printf(" OKAY COMPUTER PLEASE LOCK 2.BASKETBALL "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 4:printf(" OKAY COMPUTER PLEASE LOCK 4.BASEBALL "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 1:printf(" OKAY COMPUTER PLEASE LOCK 1.ICE HOCKEY "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); default:printf(" CHECK YOUR CHOICE "); goto rid; }else goto rid; } void ques6() { int ch,j,i;char NUM[20];char CH;int x=0,y=0,z=0; clrscr();printf(" ");printf(" "); printl(40); printf(" WH0 IS THE CAPTAIN OF INDIAN TEAM WHEN INDIA WON THE WORLD CUP(1983)"); delay(2000); printf(" YOUR OPTIONS ARE"); printf(" 1.S.GAVASKAR 2.M.AMARNATH 3.KAPIL DEV 4.ROGGER BINNY "); delay(1000); printl(); printf(" LIFELINES "); ld: for(i=1;i<=6;i++) { if(a[i]==5) x=1; if(a[i]==6) y=1; if(a[i]==7) z=1;} if (x==1) printf(" #.FIFTY-FIFTY"); else printf(" 5.FIFTY-FIFTY"); if (y==1) printf(" #.PHONO FRIEND"); else printf(" 6.PHONO FRIEND"); if (z==1) printf(" #.AUDIENCE POLL"); else printf(" 7.AUDIENCE POLL"); printf(" 8.**QUIT** "); rid: scanf("%d",&ch); if(ch==5) {if(x==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==6) {if(y==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==7) {if(z==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==8) goto read; else {printf(" SURE LOCK KAR DIYA JAYE(Y/N)"); fflush(stdin); scanf("%c",&CH);} if(CH=='Y'||CH=='y') read: switch(ch) { case 3:printf(" OKAY COMPUTER PLEASE LOCK 3.KAPIL DEV "); delay(2000);printf("a"); printf(" CORRECT ANSWER WELL PLAYED"); delay(1000); ct++; printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();}else{count();delay(1000);ques7();} case 5:a[4]=5; delay(1000); printf(" USE THE LIFELINE FIFTY-FIFTY"); delay(1000); printf(" COMPUTER PLEASE ERASE TWO WRONG OPTIONS"); delay(2000); printf("a"); x=1; clrscr(); printf(" "); printf(" "); printl(40); printf(" WH0 IS THE CAPTAIN OF INDIAN TEAM WHEN INDIA WON THE WORLD CUP(1983)"); printf(" YOUR OPTIONS ARE");j=2; six: printf(" 1.S.GAVASKAR 3.KAPIL DEV "); printl(); printf(" LIFELINES "); goto ld; case 6:a[5]=6; delay(1000); printf(" PLEASE DIAL THE NUMBER "); scanf("%s",&NUM); delay(1000); printf(" DIALING NUMBER %s",NUM);printf("a"); delay(1000); printf(" ALL THE LINES OF THIS ROUTE ARE BUSY PLEASE TRY AFTER SOME TIME"); delay(2000); clrscr(); printf(" ");printf(" "); printl(); printf(" WH0 IS THE CAPTAIN OF INDIAN TEAM WHEN INDIA WON THE WORLD CUP(1983)"); printf(" YOUR OPTIONS ARE"); if(j==2) {y=1; goto six;} printf(" 1.S.GAVASKAR 2.M.AMARNATH 3.KAPIL DEV 4.ROGGER BINNY "); printl(); printf(" LIFELINES ");y=1; goto ld; case 7:a[6]=7; delay(1000);if(j==2) {printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 34% 2. -% 3. 66% 4. -% ");goto sd;} printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 36% 2. 17% 3. 40% 4. 07% "); sd: delay(5000);clrscr(); printf(" ");printf(" "); printl(40); printf(" WH0 IS THE CAPTAIN OF INDIAN TEAM WHEN INDIA WON THE WORLD CUP(1983)"); printf(" YOUR OPTIONS ARE"); if(j==2) {printf(" 1.S.GAVASKAR 3.KAPIL DEV "); printl(); printf(" LIFELINES ");z=1; goto ld;} printf(" 1.S.GAVASKAR 2.M.AMARNATH 3.KAPIL DEV 4.ROGGER BINNY "); printl(); printf(" LIFELINES ");z=1; goto ld; case 8: printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else goto rid; case 2:printf(" OKAY COMPUTER PLEASE LOCK 2.M.AMARNATH "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 4:printf(" OKAY COMPUTER PLEASE LOCK 4.ROGGER BINNY "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 1:printf(" OKAY COMPUTER PLEASE LOCK 1.S.GAVASKAR "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); default:printf(" CHECK YOUR CHOICE "); goto rid; }else goto rid; } void ques7() { int ch,j,i;char NUM[20];char CH;int x=0,y=0,z=0; clrscr();printf(" ");printf(" "); printl(40); printf(" WHICH IS THE LATEST OS LAUNCHED BY MICROSOFT"); delay(2000); printf(" YOUR OPTIONS ARE"); printf(" 1.WINDOWS XP 2.LOGHORN 3.2.6 KERNEL 4.2OOO PROFESSIONAL "); delay(1000); printl(); printf(" LIFELINES "); ld: for(i=1;i<=6;i++) { if(a[i]==5) x=1; if(a[i]==6) y=1; if(a[i]==7) z=1;} if (x==1) printf(" #.FIFTY-FIFTY"); else printf(" 5.FIFTY-FIFTY"); if (y==1) printf(" #.PHONO FRIEND"); else printf(" 6.PHONO FRIEND"); if (z==1) printf(" #.AUDIENCE POLL"); else printf(" 7.AUDIENCE POLL"); printf(" 8.**QUIT** "); rid: scanf("%d",&ch); if(ch==5) {if(x==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==6) {if(y==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==7) {if(z==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==8) goto read; else {printf(" SURE LOCK KAR DIYA JAYE(Y/N)"); fflush(stdin); scanf("%c",&CH);} if(CH=='Y'||CH=='y') read: switch(ch) { case 2:printf(" OKAY COMPUTER PLEASE LOCK 2.LOGHORN "); delay(2000);printf("a"); printf(" CORRECT ANSWER WELL PLAYED"); delay(1000); ct++; printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();}else{count(); ques8(); } case 5:a[4]=5; delay(1000); printf(" USE THE LIFELINE FIFTY-FIFTY"); delay(1000); printf(" COMPUTER PLEASE ERASE TWO WRONG OPTIONS"); delay(2000); printf("a"); x=1; clrscr(); printf(" "); printf(" "); printl(40); printf(" WHICH IS THE LATEST OS LAUNCHED BY MICROSOFT"); printf(" YOUR OPTIONS ARE");j=2; six: printf(" 2.LOGHORN 3.2.6 KERNEL "); printl(); printf(" LIFELINES "); goto ld; case 6:a[5]=6; delay(1000); printf(" PLEASE DIAL THE NUMBER "); scanf("%s",&NUM); delay(1000); printf(" DIALING NUMBER %s",NUM);printf("a"); delay(1000); printf(" ALL THE LINES OF THIS ROUTE ARE BUSY PLEASE TRY AFTER SOME TIME"); delay(2000); clrscr(); printf(" ");printf(" "); printl(); printf(" WHICH IS THE LATEST OS LAUNCHED BY MICROSOFT"); printf(" YOUR OPTIONS ARE"); if(j==2) {y=1; goto six;} printf(" 1.WINDOWS XP 2.LOGHORN 3.2.6 KERNEL 4.2OOO PROFESSIONAL "); printl(); printf(" LIFELINES ");y=1; goto ld; case 7:a[6]=7; delay(1000);if(j==2) {printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. -% 2. 60% 3. 40% 4. -% ");goto sd;} printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 16% 2. 37% 3. 20% 4. 27% "); sd: delay(5000);clrscr(); printf(" ");printf(" "); printl(40); printf(" WHICH IS THE LATEST OS LAUNCHED BY MICROSOFT"); printf(" YOUR OPTIONS ARE"); if(j==2) {printf(" 2.LOGHORN 3.2.6 KERNEL "); printl(); printf(" LIFELINES ");z=1; goto ld;} printf(" 1.WINDOWS XP 2.LOGHORN 3.2.6 KERNEL 4.2OOO PROFESSIONAL "); printl(); printf(" LIFELINES ");z=1; goto ld; case 8: printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else goto rid; case 3:printf(" OKAY COMPUTER PLEASE LOCK 3.2.6 KERNEL "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 4:printf(" OKAY COMPUTER PLEASE LOCK 4.2000 PROFESSIONAL "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 1:printf(" OKAY COMPUTER PLEASE LOCK 1.WINDOWS XP "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); default:printf(" CHECK YOUR CHOICE "); goto rid; }else goto rid; } void ques8() { int ch,j,i;char NUM[20];char CH;int x=0,y=0,z=0; clrscr();printf(" ");printf(" "); printl(40); printf(" WHO IS THE WINNER OF US OPEN 05(WOMEN)"); delay(2000); printf(" YOUR OPTIONS ARE"); printf(" 1.KIM CLISTERS 2.S WILLIAMS 3.M SHARAPOVA 4.V WILLIAMS "); delay(1000); printl(); printf(" LIFELINES "); ld: for(i=1;i<=6;i++) { if(a[i]==5) x=1; if(a[i]==6) y=1; if(a[i]==7) z=1;} if (x==1) printf(" #.FIFTY-FIFTY"); else printf(" 5.FIFTY-FIFTY"); if (y==1) printf(" #.PHONO FRIEND"); else printf(" 6.PHONO FRIEND"); if (z==1) printf(" #.AUDIENCE POLL"); else printf(" 7.AUDIENCE POLL"); printf(" 8.**QUIT** "); rid: scanf("%d",&ch); if(ch==5) {if(x==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==6) {if(y==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==7) {if(z==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==8) goto read; else {printf(" SURE LOCK KAR DIYA JAYE(Y/N)"); fflush(stdin); scanf("%c",&CH);} if(CH=='Y'||CH=='y') read: switch(ch) { case 1:printf(" OKAY COMPUTER PLEASE LOCK 1.KIM CLISTERS "); delay(2000);printf("a"); printf(" CORRECT ANSWER WELL PLAYED"); delay(1000); ct++; printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();}else{count(); ques9(); } case 5:a[4]=5; delay(1000); printf(" USE THE LIFELINE FIFTY-FIFTY"); delay(1000); printf(" COMPUTER PLEASE ERASE TWO WRONG OPTIONS"); delay(2000); printf("a"); x=1; clrscr(); printf(" "); printf(" "); printl(40); printf(" WHO IS THE WINNER OF US OPEN 05(WOMEN)"); printf(" YOUR OPTIONS ARE");j=2; six: printf(" 1.KIM CLISTERS 3.M SHARAPOVA "); printl(); printf(" LIFELINES "); goto ld; case 6:a[5]=6; delay(1000); printf(" PLEASE DIAL THE NUMBER "); scanf("%s",&NUM); delay(1000); printf(" DIALING NUMBER %s",NUM);printf("a"); delay(1000); printf(" ALL THE LINES OF THIS ROUTE ARE BUSY PLEASE TRY AFTER SOME TIME"); delay(2000); clrscr(); printf(" ");printf(" "); printl(); printf(" WHO IS THE WINNER OF US OPEN 05(WOMEN)"); printf(" YOUR OPTIONS ARE"); if(j==2) {y=1; goto six;} printf(" 1.KIM CLISTERS 2.S WILLIAMS 3.M SHARAPOVA 4.V WILLIAMS "); printl(); printf(" LIFELINES ");y=1; goto ld; case 7:a[6]=7; delay(1000);if(j==2) {printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 78% 2. -% 3. 22% 4. -% ");goto sd;} printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 36% 2. 14% 3. 24% 4. 26% "); sd: delay(5000);clrscr(); printf(" ");printf(" "); printl(40); printf(" WHO IS THE WINNER OF US OPEN 05(WOMEN)"); printf(" YOUR OPTIONS ARE"); if(j==2) {printf(" 1.KIM CLISTERS 3.M SHARAPOVA "); printl(); printf(" LIFELINES ");z=1; goto ld;} printf(" 1.KIM CLISTERS 2.S WILLIAMS 3.M SHARAPOVA 4.V WILLIAMS "); printl(); printf(" LIFELINES ");z=1; goto ld; case 8: printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else goto rid; case 3:printf(" OKAY COMPUTER PLEASE LOCK 3.M SHARAPOVA "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 4:printf(" OKAY COMPUTER PLEASE LOCK 4.V WILLIAMS "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 2:printf(" OKAY COMPUTER PLEASE LOCK 2.S WILLIAMS "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); default:printf(" CHECK YOUR CHOICE "); goto rid; }else goto rid; } void ques9() { int ch,j,i;char NUM[20];char CH;int x=0,y=0,z=0; clrscr();printf(" ");printf(" "); printl(40); printf(" WHICH ACTOR GOT THE NATIONAL AWARD(2004)"); delay(2000); printf(" YOUR OPTIONS ARE"); printf(" 1.SAIF ALI KHAN 2.AMIR KHAN 3.SHAHRUKH KHAN 4.AJAY DEVGAN "); delay(1000); printl(); printf(" LIFELINES "); ld: for(i=1;i<=6;i++) { if(a[i]==5) x=1; if(a[i]==6) y=1; if(a[i]==7) z=1;} if (x==1) printf(" #.FIFTY-FIFTY"); else printf(" 5.FIFTY-FIFTY"); if (y==1) printf(" #.PHONO FRIEND"); else printf(" 6.PHONO FRIEND"); if (z==1) printf(" #.AUDIENCE POLL"); else printf(" 7.AUDIENCE POLL"); printf(" 8.**QUIT** "); rid: scanf("%d",&ch); if(ch==5) {if(x==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==6) {if(y==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==7) {if(z==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==8) goto read; else {printf(" SURE LOCK KAR DIYA JAYE(Y/N)"); fflush(stdin); scanf("%c",&CH);} if(CH=='Y'||CH=='y') read: switch(ch) { case 1:printf(" OKAY COMPUTER PLEASE LOCK 1.SAIF ALI KHAN "); delay(2000);printf("a"); printf(" CORRECT ANSWER WELL PLAYED"); delay(1000); ct++; printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();}else{count(); ques10(); } case 5:a[4]=5; delay(1000); printf(" USE THE LIFELINE FIFTY-FIFTY"); delay(1000); printf(" COMPUTER PLEASE ERASE TWO WRONG OPTIONS"); delay(2000); printf("a"); x=1; clrscr(); printf(" "); printf(" "); printl(40); printf(" WHICH ACTOR GOT THE NATIONAL AWARD(2004)"); printf(" YOUR OPTIONS ARE");j=2; six: printf(" 1.SAIF ALI KHAN 3.SHAHRUKH KHAN "); printl(); printf(" LIFELINES "); goto ld; case 6:a[5]=6; delay(1000); printf(" PLEASE DIAL THE NUMBER "); scanf("%s",&NUM); delay(1000); printf(" DIALING NUMBER %s",NUM);printf("a"); delay(1000); printf(" ALL THE LINES OF THIS ROUTE ARE BUSY PLEASE TRY AFTER SOME TIME"); delay(2000); clrscr(); printf(" ");printf(" "); printl(); printf(" WHICH ACTOR GOT THE NATIONAL AWARD(2004)"); printf(" YOUR OPTIONS ARE"); if(j==2) {y=1; goto six;} printf(" 1.SAIF ALI KHAN 2.AMIR KHAN 3.SHAHRUKH KHAN 4.AJAY DEVGAN "); printl(); printf(" LIFELINES ");y=1; goto ld; case 7:a[6]=7; delay(1000);if(j==2) {printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 58% 2. -% 3. 42% 4. -% ");goto sd;} printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 36% 2. 14% 3. 34% 4. 16% "); sd: delay(5000);clrscr(); printf(" ");printf(" "); printl(40); printf(" WHICH ACTOR GOT THE NATIONAL AWARD(2004)"); printf(" YOUR OPTIONS ARE"); if(j==2) {printf(" 1.SAIF ALI KHAN 3.SHAHRUKH KHAN "); printl(); printf(" LIFELINES ");z=1; goto ld;} printf(" 1.SAIF ALI KHAN 2.AMIR KHAN 3.SHAHRUKH KHAN 4.AJAY DEVGAN "); printl(); printf(" LIFELINES ");z=1; goto ld; case 8: printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else goto rid; case 3:printf(" OKAY COMPUTER PLEASE LOCK 3.SHAHRUKH KHAN "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 4:printf(" OKAY COMPUTER PLEASE LOCK 4.AJAY DEVGAN "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 2:printf(" OKAY COMPUTER PLEASE LOCK 2.AMIR KHAN "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); default:printf(" CHECK YOUR CHOICE "); goto rid; }else goto rid; } void ques10() { int ch,j,i;char NUM[20];char CH;int x=0,y=0,z=0; clrscr();printf(" ");printf(" "); printl(40); printf(" ATHELETE OF WHICH COUNTRY WON MAXIMUM GOLD MEDALS AT ATHENS"); delay(2000); printf(" YOUR OPTIONS ARE"); printf(" 1.CHINA 2.AUSTRALIA 3.USA 4.ENGLAND "); delay(1000); printl(); printf(" LIFELINES "); ld: for(i=1;i<=3;i++) { if(a[i]==5) x=1; if(a[i]==6) y=1; if(a[i]==7) z=1;} if (x==1) printf(" #.FIFTY-FIFTY"); else printf(" 5.FIFTY-FIFTY"); if (y==1) printf(" #.PHONO FRIEND"); else printf(" 6.PHONO FRIEND"); if (z==1) printf(" #.AUDIENCE POLL"); else printf(" 7.AUDIENCE POLL"); printf(" 8.**QUIT** "); rid: scanf("%d",&ch); if(ch==5) {if(x==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==6) {if(y==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==7) {if(z==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==8) goto read; else {printf(" SURE LOCK KAR DIYA JAYE(Y/N)"); fflush(stdin); scanf("%c",&CH);} if(CH=='Y'||CH=='y') read: switch(ch) { case 3:printf(" OKAY COMPUTER PLEASE LOCK 3.USA "); delay(2000);printf("a"); printf(" CORRECT ANSWER WELL PLAYED"); delay(2000); ct++; printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else {count();delay(1000); ques11();} break; case 5:a[4]=5; delay(1000); printf(" USE THE LIFELINE FIFTY-FIFTY"); delay(1000); printf(" COMPUTER PLEASE ERASE TWO WRONG OPTIONS"); delay(2000); printf("a"); x=1; clrscr(); printf(" "); printf(" "); printl(40); printf(" ATHELETE OF WHICH COUNTRY WON MAXIMUM GOLD MEDALS AT ATHENS"); printf(" YOUR OPTIONS ARE");j=2; six: printf(" 2.AUSTRALIA 3.USA "); printl(); printf(" LIFELINES "); goto ld; case 6: delay(1000);a[5]=6; printf(" PLEASE DIAL THE NUMBER "); scanf("%s",&NUM); delay(1000); printf(" DIALING NUMBER %s",NUM);printf("a"); delay(1000); printf(" ALL THE LINES OF THIS ROUTE ARE BUSY PLEASE TRY AFTER SOME TIME"); delay(2000); clrscr(); printf(" ");printf(" "); printl(); printf(" ATHELETE OF WHICH COUNTRY WON MAXIMUM GOLD MEDALS AT ATHENS"); printf(" YOUR OPTIONS ARE"); if(j==2) {y=1; goto six;} printf(" 1.CHINA 2.AUSTRALIA 3.USA 4.ENGLAND "); printl(); printf(" LIFELINES ");y=1; goto ld; case 7:a[6]=7; delay(1000);if(j==2){ printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. -% 2. 75% 3. 25% 4. -% ");goto sd;} printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 24% 2. 67% 3. 5% 4. 4% "); sd: delay(5000);clrscr(); printf(" ");printf(" "); printl(40); printf(" ATHELETE OF WHICH COUNTRY WON MAXIMUM GOLD MEDALS AT ATHENS"); printf(" YOUR OPTIONS ARE"); if(j==2) {printf(" 2.AUSTRALIA 3.USA "); printl(); printf(" LIFELINES ");z=1; goto ld;} printf(" 1.CHINA 2.AUSTRALIA 3.USA 4.ENGLAND "); printl(); printf(" LIFELINES ");z=1; goto ld; case 8: printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else goto rid; case 1:printf(" OKAY COMPUTER PLEASE LOCK 1.CHINA "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 2:printf(" OKAY COMPUTER PLEASE LOCK 2.AUSTRALIA "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 4:printf(" OKAY COMPUTER PLEASE LOCK 4.ENGLAND "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); default:printf(" CHECK YOUR CHOICE "); goto rid; }else goto rid; } void ques11() { int ch,j,i;char NUM[20];char CH;int x=0,y=0,z=0; clrscr();printf(" ");printf(" "); printl(40); printf(" ATHELETE OF WHICH COUNTRY WON MAXIMUM GOLD MEDALS AT ATHENS"); delay(2000); printf(" YOUR OPTIONS ARE"); printf(" 1.CHINA 2.AUSTRALIA 3.USA 4.ENGLAND "); delay(1000); printl(); printf(" LIFELINES "); ld: for(i=1;i<=3;i++) { if(a[i]==5) x=1; if(a[i]==6) y=1; if(a[i]==7) z=1;} if (x==1) printf(" #.FIFTY-FIFTY"); else printf(" 5.FIFTY-FIFTY"); if (y==1) printf(" #.PHONO FRIEND"); else printf(" 6.PHONO FRIEND"); if (z==1) printf(" #.AUDIENCE POLL"); else printf(" 7.AUDIENCE POLL"); printf(" 8.**QUIT** "); rid: scanf("%d",&ch); if(ch==5) {if(x==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==6) {if(y==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==7) {if(z==1) {printf(" LIFELINE ALREADY USED ");goto rid;} goto read;} if(ch==8) goto read; else {printf(" SURE LOCK KAR DIYA JAYE(Y/N)"); fflush(stdin); scanf("%c",&CH);} if(CH=='Y'||CH=='y') read: switch(ch) { case 3:printf(" OKAY COMPUTER PLEASE LOCK 3.USA "); delay(2000);printf("a"); printf(" CORRECT ANSWER WELL PLAYED"); delay(2000); ct++; printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} case 5:a[4]=5; delay(1000); printf(" USE THE LIFELINE FIFTY-FIFTY"); delay(1000); printf(" COMPUTER PLEASE ERASE TWO WRONG OPTIONS"); delay(2000); printf("a"); x=1; clrscr(); printf(" "); printf(" "); printl(40); printf(" ATHELETE OF WHICH COUNTRY WON MAXIMUM GOLD MEDALS AT ATHENS"); printf(" YOUR OPTIONS ARE");j=2; six: printf(" 2.AUSTRALIA 3.USA "); printl(); printf(" LIFELINES "); goto ld; case 6: delay(1000);a[5]=6; printf(" PLEASE DIAL THE NUMBER "); scanf("%s",&NUM); delay(1000); printf(" DIALING NUMBER %s",NUM);printf("a"); delay(1000); printf(" ALL THE LINES OF THIS ROUTE ARE BUSY PLEASE TRY AFTER SOME TIME"); delay(2000); clrscr(); printf(" ");printf(" "); printl(); printf(" ATHELETE OF WHICH COUNTRY WON MAXIMUM GOLD MEDALS AT ATHENS"); printf(" YOUR OPTIONS ARE"); if(j==2) {y=1; goto six;} printf(" 1.CHINA 2.AUSTRALIA 3.USA 4.ENGLAND "); printl(); printf(" LIFELINES ");y=1; goto ld; case 7:a[6]=7; delay(1000);if(j==2){ printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. -% 2. 75% 3. 25% 4. -% ");goto sd;} printf(" AUDIENCE GET READY WITH YOUR VOTING PADS YOU HAVE 10 SECONDS TO VOTE"); delay(3000);printf("a"); printf(" 1. 24% 2. 67% 3. 5% 4. 4% "); sd: delay(5000);clrscr(); printf(" ");printf(" "); printl(40); printf(" ATHELETE OF WHICH COUNTRY WON MAXIMUM GOLD MEDALS AT ATHENS"); printf(" YOUR OPTIONS ARE"); if(j==2) {printf(" 2.AUSTRALIA 3.USA "); printl(); printf(" LIFELINES ");z=1; goto ld;} printf(" 1.CHINA 2.AUSTRALIA 3.USA 4.ENGLAND "); printl(); printf(" LIFELINES ");z=1; goto ld; case 8: printf(" DO YOU WANT TO QUIT(Y/N)"); fflush(stdin); scanf("%c",&CH); if(CH=='Y'||CH=='y') {check(); exit();} else goto rid; case 1:printf(" OKAY COMPUTER PLEASE LOCK 1.CHINA "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 2:printf(" OKAY COMPUTER PLEASE LOCK 2.AUSTRALIA "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); case 4:printf(" OKAY COMPUTER PLEASE LOCK 4.ENGLAND "); delay(2000); printf(" AFFSOS!YOUR ANSWER IS WRONG"); check(); exit(); default:printf(" CHECK YOUR CHOICE "); goto rid; }else goto rid; } void count() {clrscr(); make(); } void check() { clrscr(); if(ct>=3&&ct<=5) {w=1; count();} if(ct>=6&&ct<=10) {w=2; count();} if(ct==11) count(); if(ct<=2) printf(" YOU WON NOTHING"); getch(); } int make(void) {int gdriver = DETECT, gmode, errorcode; char msg[80]; int midx, midy, i; initgraph(&gdriver, &gmode, ""); setbkcolor(5); midx = 628 ; midy = 450 ; setfillstyle(SOLID_FILL, getmaxcolor()); setbkcolor(12); setcolor(1); if(ct==1) { bar(midx-35, midy-28, midx+0, midy+00); setcolor(RED); sprintf(msg, "Q1"); outtextxy(600, 430, msg); setcolor(YELLOW); sprintf(msg,"YOU WON Rs.10000/-"); outtextxy(270,240,msg); } setcolor(1); if(ct==2) {bar(midx-35, midy-58, midx+0, midy+00); setcolor(RED); sprintf(msg, "Q2"); outtextxy(600, 400, msg); setcolor(YELLOW); sprintf(msg,"YOU WON Rs.20000/-"); outtextxy(270,240,msg); }setcolor(1); if(ct==3) {pep: bar(midx-35, midy-88, midx+0, midy+00); sprintf(msg, "Q3"); outtextxy(600, 370, msg); setcolor(YELLOW); sprintf(msg,"YOU WON Rs.40000/-"); outtextxy(270,240,msg);if(ct<=4)goto tp; }setcolor(1); if(ct==4) {if(w==1) goto pep; bar(midx-35, midy-118, midx+0, midy+00);sprintf(msg, "Q4"); outtextxy(600, 340, msg); setcolor(YELLOW); sprintf(msg,"YOU WON Rs.80000/-"); outtextxy(270,240,msg); }setcolor(1); if(ct==5) {if(w==1) goto pep; bar(midx-35, midy-148, midx+0, midy+00);sprintf(msg, "Q5"); outtextxy(600, 310, msg); setcolor(YELLOW); sprintf(msg,"YOU WON Rs.160000/-"); outtextxy(270,240,msg); }setcolor(1); if(ct==6) {ter: bar(midx-35, midy-178, midx+0, midy+00);sprintf(msg, "Q6"); outtextxy(600, 280, msg); setcolor(YELLOW); sprintf(msg,"YOU WON Rs.160000/-"); outtextxy(270,240,msg); if(ct<=7)goto tp; }setcolor(1); if(ct==7) {if(w==2) goto ter; bar(midx-35, midy-208, midx+0, midy+00);sprintf(msg, "Q7"); outtextxy(600, 250, msg); setcolor(YELLOW); sprintf(msg,"YOU WON Rs.320000/-"); outtextxy(270,240,msg); }setcolor(1); if(ct==8) { if(w==2) goto ter; bar(midx-35, midy-238, midx+0, midy+00);sprintf(msg, "Q8"); outtextxy(600, 220, msg); setcolor(YELLOW); sprintf(msg,"YOU WON Rs.650000/-"); outtextxy(270,240,msg); }setcolor(1); if(ct==9) {if(w==2) goto ter; bar(midx-35, midy-268, midx+0, midy+00);sprintf(msg, "Q9"); outtextxy(600, 190, msg); setcolor(YELLOW); sprintf(msg,"YOU WON Rs.1250000/-"); outtextxy(270,240,msg); }setcolor(1); if(ct==10) {if(w==2) goto ter; bar(midx-35, midy-298, midx+0, midy+00);sprintf(msg, "Q10"); outtextxy(600, 160, msg); setcolor(YELLOW); sprintf(msg,"YOU WON Rs.5000000/-"); outtextxy(270,240,msg); }setcolor(1); if(ct==11) {bar(midx-35, midy-328, midx+0, midy+00);sprintf(msg, "Q11"); outtextxy(600, 130, msg); setcolor(YELLOW); sprintf(msg,"YOU WON Rs.10000000/-"); outtextxy(270,240,msg);} tp: setcolor(1); moveto(590, 390);lineto(630, 390); moveto(590, 360);lineto(630, 360); moveto(593, 360);lineto(593, 390); moveto(627, 360);lineto(627, 390); moveto(590, 120);lineto(590, 450); moveto(590, 330);lineto(630, 330); moveto(590, 450);lineto(630, 450); moveto(630, 120);lineto(630, 450); moveto(590, 120);lineto(630, 120); moveto(590, 420);lineto(630, 420); moveto(590, 300);lineto(630, 300); moveto(590, 270);lineto(630, 270); moveto(590, 240);lineto(630, 240); moveto(590, 210);lineto(630, 210); moveto(590, 180);lineto(630, 180); moveto(590, 150);lineto(630, 150); moveto(590, 120);lineto(630, 120); sprintf(msg, "I LEVEL"); outtextxy(530, 358, msg); sprintf(msg, "II LEVEL"); outtextxy(527, 268, msg); sprintf(msg, "ONE CRORE"); outtextxy(518, 118, msg); if(ct==11) { setcolor(7); sprintf(msg,"CONGRATULATIONS"); outtextxy(270,210,msg); getch(); exit();} /* clean up */ getch(); closegraph(); return 0; }

Related Source Codes

Script Name Author
The Game Opposite as seen on Nokia 2300 Mobile Manikanta
RECURSIVE BALANCED QUICK SORT ashish
Radix Sort ashish
Change your mouse pointer Ashim
The blinking star Shashank
Data Validation Crylittlebaby
To search a file by giving file type like mp3 or mpeg or doc Prashanth SR
Menus Demonstration B.Chidhambaram
Employee Database Project Using C. Reenku Raman Nayak
Creating a Lexical Analyzer in c fahad bader al-buhairi �դ ?�� ��??���
Calendar Program Omkar & Devendra
Stop double Process for start in C Cedrik Jurak
Stop double Process for start in C Cedrik Jurak
Time Scheduler Atiq Anwar
A timepass game between atmost two players Rahul Roy

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=1155


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review