Advertisement
XOptimistixX

Gayness Quiz

Jul 18th, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 5.47 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int yes, no, controls, controlsConfirm;
  6.     printf("Hello and welcome to the famous gay pop quiz!\nThere are only two options, yes or no!\nIf you enter a letter you'll break the program.\n");
  7.     while (controlsConfirm!=yes)
  8.     {
  9.         printf("Choose your controls.(Integers only for now)\nFor Yes(on the left)\n>>");
  10.         scanf("%d", &yes);
  11.         printf("For No(on the right)\n>>");
  12.         scanf("%d", &no);
  13.         printf("So you want \"%d\" as yes and \"%d\" as no?(Press 1 for yes and 0 for no)\n", yes, no);
  14.         scanf("%d", &controls);
  15.         if (yes==no)
  16.         {
  17.             printf("Nope you will not break the game that easily.\n");
  18.             controlsConfirm=no;
  19.         }
  20.         else if (controls==yes)
  21.             controlsConfirm=yes;
  22.         else if (controls==no)
  23.             controlsConfirm=no;
  24.         else
  25.         {
  26.             printf("Please input either 1 or 0.\n");
  27.             controlsConfirm=no;
  28.         }
  29.     }
  30.     int first=yes, exit=no, extra, secondExtra, answer, secondAnswer, useless, kaiYan=no, daniel=no;
  31.     while (exit==no)
  32.     {
  33.  
  34.         while (first==yes)
  35.         {
  36.             printf("Are you gay?(%d/%d)\n>>", yes, no);
  37.             scanf("%d", &answer);
  38.             if (answer==yes)
  39.             {
  40.                 printf("You are offically gay.\n");
  41.                 first=no;
  42.             }
  43.             else if (answer==no)
  44.             {
  45.                 printf("Please try again, no is not a valid answer.\nOh wait a");
  46.                 while (kaiYan==no)
  47.                 {
  48.                     printf("re you a Kai Yan?(%d/%d)\n>>", yes, no);
  49.                     scanf("%d", &extra);
  50.                     if (extra==yes)
  51.                     {
  52.                         kaiYan=yes;
  53.                         first=no;
  54.                     }
  55.                     else if (extra==no)
  56.                     {
  57.                         printf("Then I think you will need to think twice.\n");
  58.                         kaiYan=yes;
  59.                         first=yes;
  60.                     }
  61.                     else
  62.                     {
  63.                         printf("That's no valid, you have to put YES:%d or NO:%d, a", yes, no);
  64.                         kaiYan=no;
  65.                     }
  66.                 }
  67.                 kaiYan=0;
  68.             }
  69.             else printf("DAFUQ M8\n");
  70.         }
  71.         //first extra part of program
  72.         if (extra==yes)
  73.             printf("So are you with Zhehao?(%d/%d)\n>>", yes, no);
  74.             answer=no;
  75.         while (extra==yes)
  76.         {
  77.             scanf("%d", &answer);
  78.             if (answer==yes)
  79.             {
  80.                 printf("Yup I knew it!XD\n");
  81.                 extra=no;
  82.             }
  83.             else if (answer==no)
  84.             {
  85.                 printf("Are you with someone else?(%d/%d)\n>>",yes ,no);
  86.                 scanf("%d", &secondAnswer);
  87.                 if (secondAnswer==yes)
  88.                 {
  89.                     extra=no;
  90.                     secondExtra=yes;
  91.                 }
  92.                 else if (secondAnswer==no)
  93.                 {
  94.                     printf("You will forever be alone and flat haha!XD\n");
  95.                     extra=no;
  96.                     secondExtra=no;
  97.                 }
  98.                 else printf("Wut did u just say? Please reply properly...\n");
  99.             }
  100.             else printf("Please try again\n>>");
  101.         }
  102.         //second extra part of program
  103.         if (secondExtra==yes)
  104.         {
  105.             printf("So who are you with?\n");
  106.             answer=no;
  107.         }
  108.         while (secondExtra==yes)
  109.         {
  110.             printf("Are you with Ambao?(%d/%d)\n>>", yes, no);
  111.             scanf("%d", &secondAnswer);
  112.             if (secondAnswer==yes)
  113.             {
  114.                 printf("Zhehao will be very disappointed with you, Kai Yan.\nBe happy with Ambao though...\n");
  115.                 secondExtra=no;
  116.             }
  117.             else if (secondAnswer==no)
  118.             {
  119.                 while (daniel==no)
  120.                 {
  121.                     printf("Are you back with Daniel?(%d/%d)\n>>", yes, no);
  122.                     scanf("%d", &answer);
  123.                     if (answer==yes)
  124.                     {
  125.                         printf("You can now go back to Daniel, Zhehao is really very sad now...\n");
  126.                         daniel=yes;
  127.                         secondExtra=no;
  128.                     }
  129.                     else if (answer==no)
  130.                     {
  131.                         printf("So who are you with now? Enter a number.(%d or %d)\n>>", yes, no);
  132.                         scanf("%d", &useless);
  133.                         if (0<=useless<=1)
  134.                         {
  135.                             printf("\"But a number?\", you ask? Guess what? IDC, Zhehao cri naw anyway...\n");
  136.                             daniel=yes;
  137.                             secondExtra=no;
  138.                         }
  139.                     }
  140.                     else
  141.                         printf("plz dun brek prgrem, i cri evertim\nPs: yes i said any number but lolololollololoolol");
  142.                 }
  143.             }
  144.             else
  145.                 printf("Say wut, I want a truthful answer.\n>>");
  146.         }
  147.         printf("Congratulations! You have finished the quiz!\nDo you want to exit dis quiz?(%d/%d)\n>>", yes, no);
  148.         scanf("%d", &exit);
  149.         if (exit==no)
  150.             first=yes, exit=no, extra=no, secondExtra=no, answer=no, secondAnswer=no;
  151.     }
  152.     return 0;
  153. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement