<mosaic.cnfolio.com>
PROGRAM
  1. #include <stdio.h>
  2. int main (void)
  3.  
  4. {
  5.  
  6. /*
  7. START
  8.       INPUT amount of Pidgey Pokemon
  9.      
  10.       IF (pidgeypokemon>0) amount of Pidgey Pokemon is greater than 0
  11.       THEN
  12.           PRINT "Continue to enter amount of Pidgey Candy"
  13.       ELSE
  14.           PRINT "Not enough Pidgey Pokemon to continue"
  15.           RETURN to start of program
  16.          
  17.       INPUT amount of Pidgey Candy
  18.      
  19.       IF (candy>=12) amount of Pidgey Candy is greater than or equal to 12
  20.       THEN
  21.           PRINT "Use Lucky Egg Bonus Timer"
  22.       ELSE
  23.           PRINT "Not enough Pidgey Candy to continue"
  24.           RETURN to start of program
  25.          
  26.       GET answer
  27.       answer = candy/12
  28.      
  29.       GET candynew
  30.       candynew = answer+candy
  31.      
  32.       GET answer2
  33.       answer2 = candynew/12
  34.      
  35.       GET XP
  36.       XP = answer2*500
  37.      
  38.       IF (answer2<=pidgeypokemon) answer2 is less than or equal to pidgeypokemon
  39.       THEN
  40.           PRINT "XP gained from evolving Pidgey Pokemon ___ " (value of XP in space)
  41.       ELSE
  42.           GET answer3
  43.           answer3 = pidgeypokemon*500
  44.           PRINT "XP gained from evolving Pidgey Pokemon ___ " (value of answer3 in space)
  45.      
  46.       GET answer
  47.       answer = candy/12
  48.      
  49.       GET candynew
  50.       candynew = answer+candy
  51.      
  52.       GET answer2
  53.       answer2 = candynew/12
  54.      
  55.       GET XP
  56.       XP = answer2*1000
  57.      
  58.       IF (answer2<=pidgeypokemon) answer2 is less than or equal to pidgeypokemon
  59.       THEN
  60.           PRINT "XP gained from evolving Pidgey Pokemon while using Lucky Egg Timer ___ " (value of XP in space)
  61.       ELSE
  62.           GET answer3
  63.           answer3 = pidgeypokemon*500
  64.           PRINT "XP gained from evolving Pidgey Pokemon while using Lucky Egg Timer ___ " (value of answer3 in space)
  65.      
  66.       END   
  67.          
  68. */
  69.  
  70. int pidgeypokemon,candy,answer,candynew,answer2,XP,answer3;
  71.  
  72. pidgeypokemon=0;
  73. scanf("%d",&pidgeypokemon);
  74. printf ("Enter the amount of Pidgey Pokemon: %d \n" ,pidgeypokemon);
  75.  
  76. if (pidgeypokemon>0)
  77. {
  78. printf ("Continue to enter amount of Pidgey Candy \n");
  79. }
  80.  
  81. else
  82. {
  83. printf ("Not enough Pidgey Pokemon to continue");
  84.  
  85. return 0;
  86. }
  87.  
  88. candy=0;
  89. scanf ("%d",&candy);
  90. printf ("Enter the amount of Pidgey Candy: %d \n" ,candy);
  91.  
  92. if (candy>=12)
  93. {
  94. printf ("Use Lucky Egg Bonus Timer \n");
  95. }
  96.  
  97. else
  98. {
  99. printf ("Not enough Pidgey Candy to continue \n");
  100.  
  101. return 0;
  102. }
  103.  
  104. answer = candy/12;
  105.  
  106. candynew = answer + candy;
  107.  
  108. answer2 = candynew/12;
  109.  
  110. XP = answer2*500;
  111.  
  112. if (answer2<=pidgeypokemon)
  113.  
  114. {
  115. printf ("XP gained from evolving Pidgey Pokemon: %d XP \n",XP);
  116. }
  117.  
  118. else
  119.  
  120. {
  121. answer3 = pidgeypokemon*500;
  122.  
  123. printf ("XP gained from evolving Pidgey Pokemon: %d XP \n", answer3);
  124. }
  125.  
  126. answer = candy/12;
  127.  
  128. candynew = answer + candy;
  129.  
  130. answer2 = candynew/12;
  131.  
  132. XP = answer2*1000;
  133.  
  134. if (answer2<=pidgeypokemon)
  135.  
  136. {
  137. printf ("XP gained from evolving Pidgey Pokemon while using Lucky Egg Timer: %d XP \n",XP);
  138. }
  139.  
  140. else
  141.  
  142. {
  143. answer3 = pidgeypokemon*1000;
  144.  
  145. printf ("XP gained from evolving Pidgey Pokemon while using Lucky Egg Timer: %d XP \n", answer3);
  146. }
  147.  
  148. }