Turbo C++ · 2016
The original source
What ran the prelims of Matrix Ecomm 2016, exactly as I wrote it in high school:
gotoxy for layout, cprintf for colour, and a
password typed one character at a time.
- 653 lines
- 15 questions
- 61
gotos
#include<ctype.h>#include<iostream.h>#include<string.h>#include<process.h>#include<conio.h>#include<dos.h>void demo() { gotoxy(21,15); textcolor(4); cprintf("FULL Life: [// // // // //]\n"); getch(); /*gotoxy(15,15); cprintf("Half Life Deducted: [// // // // // / ]\n"); getch();*/ gotoxy(12,15); cprintf("ONE Full Life Deducted: [// // // // ]\n"); getch(); }int life(int p) { gotoxy(63,1); int bre; textcolor(4); cprintf("[// // // // //]\n"); gotoxy(63,1); if(p==1) cprintf("[// // // // // / ]\n"); gotoxy(63,1); if(p==2) cprintf("[// // // // ]\n"); gotoxy(60,1); if(p==3) cprintf("[// // // // / ]\n"); gotoxy(63,1); if(p==4) cprintf("[// // // ]\n"); gotoxy(63,1); if(p==5) cprintf("[// // / ]\n"); gotoxy(63,1); if(p==6) cprintf("[// // ]\n"); gotoxy(63,1); if(p==8) cprintf("[// ]\n"); gotoxy(63,1); if(p==10){ cprintf("[ !ZERO LIVES! ]\n");bre=1;} textcolor(2); return(bre);}void score(int x) { textcolor(3); gotoxy(32,1); cout<<"Score: "<<x; textcolor(2); }void skips(int x) { textcolor(14); if(x==0){ gotoxy(1,1);cout<<"Skips: "<<x;} if(x==1){ gotoxy(1,1);cout<<"Skips: "<<x;} if(x==2){ gotoxy(1,1);cout<<"Skips: "<<x;} if(x==3){ gotoxy(1,1);cout<<"Skips: "<<x;} if(x>=3){ gotoxy(27,15);cout<<"IT SEEMS LIKE YOU ARE OUT OF SKIPS!";} }int anss(int x,char y[20]) //string { int flag=0,c; //a1 if(x==1) { char *cc1="FORTH"; int l; l=strlen(y); for (int i=0;i<l;i++) { y[i]=toupper(y[i]); } c= strcmp(y,cc1); if((x==1) && c==0) flag=1; } if(x==5) { char *cc3="theythematrix"; c= strcmp(y,cc3); if((x==5) && c==0) flag=1; } if(x==13) { char *cc2="OAK"; int l; l=strlen(y); for (int i=0;i<l;i++) { y[i]=toupper(y[i]); } c= strcmp(y,cc2); if((x==13) && c==0) flag=1; } if(x==14) { char *cc4="0X12"; int l; l=strlen(y); for (int i=0;i<l;i++) { y[i]=toupper(y[i]); } c= strcmp(y,cc4); if((x==14) && c==0) flag=1; } if(flag==0) { gotoxy(1,20); cprintf("Wrong"); } else { gotoxy(1,20); cprintf("Right"); } return(flag); }int ans1(int x,char y) //char { int flag=0; //a2 if(x==2) { if(x==2 && toupper(y)=='U') flag=1; } //a3 if(x==3) { if(x==3 && toupper(y)=='C') flag=1; } //a15 if(x==15) { if(x==15 && toupper(y)=='E') flag=1; } if(flag==0) { gotoxy(1,20); cprintf("Wrong"); } else { gotoxy(1,20); cprintf("Right"); } return(flag); }int ans2(int x, int y) //int { int flag=0; //a4 if(x==4) { if(x==4 && y==40) flag=1; } //a6 if(x==6) { if(x==6 && y==1) flag=1; } //a7 if(x==7) { if(x==7 && y==1800) flag=1; } //a8 if(x==8) { if(x==8 && y==11) flag=1; } //a9 if(x==9) { if(x==9 && y==5) flag=1; } //a10 if(x==10) { if(x==10 && y==1) flag=1; } //a11 if(x==11) { if(x==11 && y==12) flag=1; } //a12 if(x==12) { if(x==12 && y==70) flag=1; } //a15 if(x==15) { if(x==15 && y==235) flag=1; } if(flag==0) { gotoxy(1,20); cprintf("Wrong"); } else { gotoxy(1,20); cprintf("Right"); } return(flag); }void main(){clrscr();char k1,k2,k3,k4,k5,k6,k7;cout<<"Enter Password\n";cin>>k1;gotoxy(1,2);cout<<"*";cin>>k2;gotoxy(2,2);cout<<"*";cin>>k3;gotoxy(3,2);cout<<"*";cin>>k4;gotoxy(4,2);cout<<"*";cin>>k5;gotoxy(5,2);cout<<"*";cin>>k6;gotoxy(6,2);cout<<"*";int br=0;int FLAG,ctr=0,skip=0,ans20,sc=0;char sa,anss0[20],ans10;clrscr();while(k1=='i' && k2=='t' && k3=='h' && k4=='a' && k5=='s' && k6=='u'){cout<<"Welcome to Matrix Ecomm 2016 Programming Event";getch();getch();clrscr();//life(0);cout<<"You both are Trinity and Thomas Anderson a.k.a Neo.\nTrinity is an infamous hacker.\nNeo is a computer programmer.\nYou have never met each other.\nYou both will be asked logical questions.....as you are here for\n programming prelims, and not to watch a movie! :)\nYou will be asked 15 questions, either you can answer them or skip them. But, \nremember! You only have 3 skips, after using all of them you would be forced to answer the other questions. You will be given 5 lives.\nIf you give the right answer you will proceed unharmed and awarded \n5, 10 or 20 Points depending on the question being asked, but if the answer is \nwrong, you will lose one life!\nIn the end, the team with highest score will move on to the FINALS. \nIn case of a tie, team with more lives remaining will be given higher priority.";demo();getch();clrscr();//q1if(br==1) goto end;gotoxy(1,3);cout<<"Trinity is cornered by police in an abandoned hotel. Trinity tries to escape.";getch();br=life(0);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,5);cout<<"\n\nQuestion 1:\tWhich word is the odd one out:\n First-Second-Third-Forth- Fifth-Sixth-Seventh-Eighth\t(Points: 5)";x1:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>anss0; FLAG = anss(1,anss0); if(FLAG==0) {gotoxy(1,16);cout<<"You got hurt!\n";ctr+=2;life(ctr);getch();} else {gotoxy(1,16);cout<<"You managed to escape, using your superhuman abilities!";sc+=5;score(sc);getch();} }else if(sa=='s' || sa=='S'){if(skip>=3){ skips(5);goto x1;}else skip++;}else {goto x1;}clrscr();//q2if(br==1) goto end;cout<<"Thomas Anderson is a computer programmer living a double life under the hacker alias 'Neo'. He believes something is wrong with the world and is puzzled by repeated online encounters with the cryptic phrase 'the Matrix'. Trinity contacts him, saying that a man named Morpheus can explain its meaning";getch();clrscr();br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"Neo, tries to hack a network.";gotoxy(1,5);cout<<"Question 2:\tWhich is the next letter?\t(Points: 5)\nC,E,H,M,_";x2:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>ans10; FLAG = ans1(2,ans10); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,16);cout<<"He is successful, but careless as the Agents track his IP.";getch();} else {gotoxy(1,16);cout<<"He is successful and finds another occurrence of the mysterious phrase\n 'the Matrix'";sc+=5;score(sc);getch();} }else if(sa=='s' || sa=='S') {if(skip>=3){ skips(5);goto x2;}else skip++;}else {goto x2;}clrscr();//q3if(br==1) goto end;br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"The Agents, led by Agent Smith, apprehend Neo at his office.";gotoxy(1,7);cout<<"Question 3:\tIf |\\ + |/ = D \t |/ + |\\ = K \n _ \n Then what is: | + |_ = ?\t(Points: 10)";x3:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>ans10; FLAG = ans1(3,ans10); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,16);cout<<"He got shot in his left leg";getch();} else {gotoxy(1,16);cout<<"He is able to escape";sc+=10;score(sc);getch();} }else if(sa=='s' || sa=='S') {if(skip>=3){ skips(5);goto x3;}else skip++;}else {goto x3;}clrscr();//q4if(br==1) goto end;br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"Neo meets Morpheus, who offers him a choice between a red pill that will allow him to learn the truth about the Matrix, and a blue pill that will return him to his old life. He chooses...\n\n";cout<<"Question 4: A man has 53 socks in his drawer: 21 identical blue, 15 identical black and 17 identical red. The lights are fused and he is completely in the dark. How many socks must he take out to make 100 per cent certain he has a pair of black socks?\t\t(Points: 10)\n!answer in integer!";x4:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>ans20; FLAG = ans2(4,ans20); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,16);cout<<"The red pill, but drops it accidentally. Unfortunately he picked it up before it was 5 secs!";getch();} else {gotoxy(1,16);cout<<"The red pill.";sc+=10;score(sc);getch();} }else if(sa=='s' || sa=='S') {if(skip>=3){ skips(5);goto x4;}else skip++;}else {goto x4;}clrscr();//q5if(br==1) goto end;cout<<"Swallowing the red pill, Neo's reality disintegrates and he awakens, naked and weak, in a liquid-filled pod, finding himself one of countless people connected by cables to an elaborate electrical system.";getch();clrscr();br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"Morpheus brings his hovercraft, the Nebuchadnezzar.";gotoxy(1,5);cout<<"Question 5:\tGive the output of the following code:\t(Points: 20)\n\n#include<iostream.h>\n\nvoid main()\n{\nchar *y=\"thematrix\";\ncout<<y;gotoxy(4,1);cout<<\"y\";cout<<y;\n}";x5:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>anss0; FLAG = anss(5,anss0); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,25);cout<<"You bump your knee while getting on the hovercraft";getch();} else {gotoxy(1,25);cout<<"You get on it safely";sc+=20;score(sc);getch();} }else if(sa=='s' || sa=='S') {if(skip>=3){ skips(5);goto x5;}else skip++;}else {goto x5;}clrscr();//q6if(br==1) goto end;cout<<"Morpheus explains that, in the 21st century, humans waged a war against intelligent machines that they had created. When humans blocked the machines' access to solar energy, the machines began to harvest the humans' bioelectricity for power. The Matrix is a shared simulation of the world as it was in 1999 in which the minds of the harvested humans are trapped and pacified";getch();clrscr();br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"Morpheus tells Neo that he was living in the matrix since birth ";gotoxy(1,5);cout<<"Question 6: How many times can you subtract 2 from 46? (Points: 10)\n!Answer in integer!";x6:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>ans20; FLAG = ans2(6,ans20); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,25);cout<<"He almost gets an heart attack after hearing this";getch();} else {gotoxy(1,25);cout<<"He is a little shocked after hearing this";sc+=10;score(sc);getch();} }else if(sa=='s' || sa=='S'){if(skip>=3){ skips(5);goto x6;}else skip++;}else {goto x6;}clrscr();//q7if(br==1) goto end;cout<<" Morpheus and his crew belong to a group of rebels who hack into the Matrix and \"unplug\" enslaved humans, recruiting them as rebels.";getch();clrscr();br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"The rebels' understanding of the true nature of the simulated reality allows them to bend its physical laws, granting them superhuman abilities.\n";gotoxy(1,6);cout<<"Question 7: Neo wanted a good night's rest. He went to bed at 8:30 pm, wound up his alarm clock from the 1970s and set it to wake him up at 9:00 am. How many seconds did Neo sleep?\t\t(Points: 10)\n!Answer in integer!";x7:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>ans20; FLAG = ans2(7,ans20); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,25);cout<<"Neo doesn't believe in what they were saying. Cypher, one of the rebel’s breaks his jawbone in a failed attempt to do a 1800 degree roundhouse kick. Bad Luck!";getch();} else {gotoxy(1,25);cout<<"Neo is in absolute awe and wants to train";sc+=10;score(sc);getch();} }else if(sa=='s' || sa=='S'){if(skip>=3){ skips(5);goto x7; }else skip++;}else {goto x7;}clrscr();//q8if(br==1) goto end;cout<<"Neo is warned that fatal injuries within the Matrix will also kill one's physical body, and that the Agents he encountered are powerful sentient programs that eliminate threats to the system.";getch();clrscr();br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"Neo goes into training with Morpheus. Morpheus tries to punch Neo in the face";gotoxy(1,5);cout<<"Question 8:\tHow many months have 30 days?\t(Points: 5)\n!Answer in integer!";x8:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>ans20; FLAG = ans2(8,ans20); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,25);cout<<"He is hit right in the face. He passes out for five minutes. Morpheus regrets his decision of recruiting Neo.";getch();} else {gotoxy(1,25);cout<<"He is able to dodge it completely";sc+=5;score(sc);getch();} }else if(sa=='s' || sa=='S') {if(skip>=3){ skips(5);goto x8; }else skip++;}else {goto x8;}clrscr();//q9if(br==1) goto end;cout<<"Neo's skill during virtual combat training lends credence to Morpheus's belief that Neo is \"the One\", a man prophesied to lead the insurrection of enslaved humans against the machines.The group enters the Matrix to visit the Oracle, a prophet who predicted the emergence of the One. She implies that Neo is not the One, and warns Neo that he will soon have to choose between his life and the life of Morpheus.";getch();clrscr();br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"Before they can leave the Matrix, the group is ambushed by Agents and tactical police.";gotoxy(1,5);cout<<"\nQuestion 9: How many passes would it take to sort the given array of integers through bubble sort?\t(Points: 20)\n\n5 4 9 3 7 11 3\n\n!Answer in integer!";x9:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>ans20; FLAG = ans2(9,ans20); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,25);cout<<"Trinity gets shot near the stomach during the gunfight";getch();} else {gotoxy(1,25);cout<<"Trinity saves Neo from a gunshot by pushing him aside";sc+=20;score(sc);getch();} }else if(sa=='s' || sa=='S'){if(skip>=3){ skips(5);goto x9; }else skip++;}else {goto x9;}clrscr();//q10if(br==1) goto end;cout<<"Morpheus allows himself to be captured so that Neo and the crew can escape. However, their getaway is hindered by Cypher, a crew member who betrayed Morpheus to Agent Smith in exchange for a blissful, comfortable life within the Matrix.\n\nIn the Matrix, the Agents interrogate Morpheus in an attempt to learn his access codes to the mainframe computer in Zion, the rebel humans' last refuge in the real world. Tank proposes killing Morpheus to prevent this, but Neo, who believes that he is not the One, instead resolves to return to the Matrix to rescue Morpheus, and Trinity insists she accompany him.";getch();clrscr();br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"The crew arrives in a chopper to rescue Morpheus. They open fire on the agents while the chopper is hovering near the building";gotoxy(1,5);cout<<"\nQuestion 10:\tWhat is the missing number?\t(Points: 20)\n\n64,49,63,33,61,?,57\n\n!Answer in integer!\n";x10:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>ans20; FLAG = ans2(10,ans20); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,25);cout<<"Trinity and Neo are able to rescue Morpheus, but in doing so they both got fresh gun wounds";getch();} else {gotoxy(1,25);cout<<"Trinity and Neo are able to rescue Morpheus";sc+=20;score(sc);getch();} }else if(sa=='s' || sa=='S'){if(skip>=3){ skips(5);goto x10;}else skip++;}else {goto x10;}clrscr();//q11if(br==1) goto end;getch();clrscr();br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"Neo gains confidence in his abilities, performing feats on par with those of the Agents. Morpheus and Trinity exit the Matrix, but Smith ambushes Neo";gotoxy(1,5);cout<<"\nQuestion 11:\tA photograph measuring 8.5 by 7.5 cm is to be enlarged. If the enlargement of the longer side is 13.6 cm, what is the length of the smaller \nside?\t\t(Points: 10)\n\n!Answer in integer!";x11:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>ans20; FLAG = ans2(11,ans20); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,25);cout<<" Neo tries to dodge bullets fired by smith by leaning backwards but gets hit by some of them.(Epic Scene Fail)";getch();} else {gotoxy(1,25);cout<<"Neo dodges bullets fired by smith by leaning backwards...Action scene of the century!";sc+=10;score(sc);getch();} }else if(sa=='s' || sa=='S'){if(skip>=3){ skips(5);goto x11; }else skip++;}else {goto x11;}clrscr();//q12if(br==1) goto end;br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"Neo tries to leave but he's killed. In the real world, \"sentinel\" machines attack theNebuchadnezzar. Trinity tries to play hero...";gotoxy(1,5);cout<<"\nQuestion 12:\tIn a certain store, the profit is 320% of the cost. If the cost increases by 25% but the selling price remains constant, approximately what \npercentage of the selling price is the profit?\t(Points: 20)\n\n!Answer in integer!(Give Approximated Answer)\n";x12:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>ans20; FLAG = ans2(12,ans20); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,25);cout<<"She tries to save herself after seeing there were too many sentinels and again injures herself. Poor trinity!";getch();} else {gotoxy(1,25);cout<<"She is able to kill one of the sentinels";sc+=20;score(sc);getch();} }else if(sa=='s' || sa=='S'){if(skip>=3){ skips(5);goto x12;}else skip++;}else {goto x12;}clrscr();//q13if(br==1) goto end;cout<<"Trinity stands over Neo and whispers to him that the Oracle told her that she would fall in love with the One. She kisses Neo (an awkward moment for the participants), and he revives with the power to perceive and control the Matrix.";getch();clrscr();br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"Neo goes to kill Agent Smith...";gotoxy(1,5);cout<<"Question 13: Some Trivia!What was Java called before it was Java? (Points: 10)\n";x13:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>anss0; FLAG = anss(13,anss0); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,25);cout<<"He (almost) effortlessly destroys Smith";getch();} else {gotoxy(1,25);cout<<"He effortlessly destroys Smith ";sc+=10;score(sc);getch();} }else if(sa=='s' || sa=='S'){if(skip>=3){ skips(5);goto x13;}else skip++;}else {goto x13;}clrscr();//q14if(br==1) goto end;getch();clrscr();br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"After destroying Smith...";gotoxy(1,5);cout<<"Question 14:\tWhat is 0xf + 0xd - 0xa= ?(Points:20)\n\n";x14:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>anss0; FLAG = anss(14,anss0); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,25);cout<<"Neo just barely makes it in time for the ship's electromagnetic pulse weapon to disable the attacking sentinels.(He got hurt !)";getch();} else {gotoxy(1,25);cout<<"Neo leaves the Matrix in time for the ship's electromagnetic pulse weapon to disable the attacking sentinels.";sc+=20;score(sc);getch();} }else if(sa=='s' || sa=='S'){if(skip>=3){ skips(5);goto x14;}else skip++;}else {goto x14;}clrscr();//q15if(br==1) goto end;cout<<"Some time later, Neo makes a telephone call in the Matrix, promising the machines that he will show their prisoners \"a world where anything is possible\".";getch();clrscr();br=life(ctr);if(br==1) goto end;score(sc);skips(skip);gotoxy(1,3);cout<<"He...";gotoxy(1,5);cout<<"Question 15:\tGive the output of the following code\t(Points: 20)\n\n#include<iostream.h>\n#include<conio.h>\n\nvoid main()\n{\nclrscr();\nint OCT=157,x=1700;\nOCT=x%157/5;\ncout<< oct << 157;\n}\n!Answer in integer!";x15:cout<<"\nSkip or Answer? (Enter S/A)\n";cin>>sa;if(sa=='a'|| sa=='A') { cout<<"Answer\n"; cin>>ans20; FLAG = ans2(15,ans20); if(FLAG==0) {ctr+=2;life(ctr);gotoxy(1,25);cout<<"hangs up the phone and tries to fly off into the sky, but falls and then has to walk to the destination. So much for his “superpowers”!";getch();} else {gotoxy(1,25);cout<<"hangs up the phone and flies into the sky.";sc+=20;score(sc);getch();} }else if(sa=='s' || sa=='S'){if(skip>=3){ skips(5);goto x15;}else skip++;}else {goto x15;}clrscr();break;}clrscr();if(k1!='i' || k2!='t' || k3!='h' || k4!='a' || k5!='s'|| k6!='u') { clrscr(); cout<<"\n\n!!CHEATER!!"; getch();goto end2; }end:if(ctr<10) { gotoxy(25,12);cout<<"You have finished the game!\n";gotoxy(30,13);cout<<"Final Score: "<<sc;gotoxy(30,14);cout<<"Skips Used: "<<skip;gotoxy(30,15);life(ctr); }if(ctr>=10) { gotoxy(32,12);cout<<"GAME OVER!\n";gotoxy(30,13);cout<<"Final Score: "<<sc;gotoxy(30,14);cout<<"Skips Used: "<<skip;gotoxy(30,15);life(ctr); }gotoxy(1,18);cout<<"Step away from your computers, write the name of your school, and your name on \nthe SHEET THAT IS PROVIDED. And, we'll let you know if you have made it to the \nfinals\n\t\t\t\tTHE MATRIX HAS YOU!";getch();end2:}