<mosaic.cnfolio.com>
PROGRAM
  1. /*
  2. START
  3. Read input for the pokemon number and candy number
  4. Choose which pokemon for calculations with a '1'
  5. Add together choice values for a checking value
  6.     IF the checking value is more than '1'
  7.         THEN Display 'Oops, something's gone wrong :( , You've chosen more than one pokemon!'
  8.         END IF
  9.     ELSE IF pidegey has been slected
  10.         THEN
  11.         Divide candies by 11 this is the evolves number
  12.         IF candies is less than 12
  13.             THEN Display 'Oops, something's gone wrong :( , Not enough candies!'
  14.         END IF
  15.         ELSE IF evolves number is greater than pokemon number
  16.             THEN Display 'You can evolve (pokemon number) pidgey's, and recive (pokemon number * 500 * 2) XP when using a lucky egg.'
  17.         END IF
  18.         ELSE IF evolves number is less than pokemon number
  19.             THEN Display 'You can evolve (evolves number) pidgey's, and recive (evolves number * 500 * 2) XP when using a lucky egg.'
  20.         END IF
  21.     END IF
  22.     ELSE IF rattata has been slected
  23.         THEN
  24.         Divide candies by 24 this is the evolves number
  25.         IF candies is less than 25
  26.             THEN Display 'Oops, something's gone wrong :( , Not enough candies!'
  27.         END IF
  28.         ELSE IF evolves number is greater than pokemon number
  29.             THEN Display 'You can evolve (pokemon number) rattata's, and recive (pokemon number * 500 * 2) XP when using a lucky egg.'
  30.         END IF
  31.         ELSE IF evolves number is less than pokemon number
  32.             THEN Display 'You can evolve (evolves number) rattata's, and recive (evolves number * 500 * 2) XP when using a lucky egg.'
  33.         END IF
  34.     END IF
  35.     ELSE IF digglet has been slected
  36.         THEN
  37.         Divide candies by 49 this is the evolves number
  38.         IF candies is less than 50
  39.             THEN Display 'Oops, something's gone wrong :( , Not enough candies!'
  40.         END IF
  41.         ELSE IF evolves number is greater than pokemon number
  42.             THEN Display 'You can evolve (pokemon number) digglet's, and recive (pokemon number * 500 * 2) XP when using a lucky egg.'
  43.         END IF
  44.         ELSE IF evolves number is less than pokemon number
  45.             THEN Display 'You can evolve (evolves number) digglet's, and recive (evolves number * 500 * 2) XP when using a lucky egg.'
  46.         END IF
  47.     END IF
  48.     ELSE
  49.         THEN Display 'Oops, something's gone wrong :( , Unkown error check code.'
  50.     END ELSE
  51. END
  52. */
  53. #include <stdio.h>
  54.  
  55. int main( void )
  56. {
  57.    int pidgey, rattata, digglet, choicecheck, candies, pokenum, evolves;
  58.  
  59.    scanf( "%d %d", &pokenum, &candies )
  60.    
  61.    pidgey  = 1;
  62.    rattata = 0;
  63.    digglet = 0;
  64.    
  65.    choicecheck = pidgey + rattata + digglet;
  66.    
  67.    if (choicecheck > 1)
  68.    {
  69.       printf( "Oops, something's gone wrong :( , You've chosen more than one pokemon!");
  70.    }
  71.    else if (pidgey == 1)
  72.    {
  73.          evolves = candies / 11;
  74.      if (candies < 12)
  75.       printf( "Oops, something's gone wrong :( , Not enough candies!");
  76.      else if ( evolves > pokenum )
  77.       printf( "You can evolve %d pidgey's, and recive %d XP when using a lucky egg.", pokenum, pokenum * 500 * 2 );
  78.      else if ( evolves < pokenum )
  79.       printf( "You can evolve %d pidgey's, and recive %d XP when using a lucky egg.", evolves, evolves * 500 * 2 );
  80.    }
  81.    
  82.    else if ( rattata == 1 )
  83.    {
  84.          evolves = candies / 24;
  85.      if (candies < 25)
  86.       printf( "Oops, something's gone wrong :( , Not enough candies!");
  87.      else if ( evolves > pokenum )
  88.       printf( "You can evolve %d rattata's, and recive %d XP when using a lucky egg.", pokenum, pokenum * 500 * 2 );
  89.      else if ( evolves < pokenum )
  90.       printf( "You can evolve %d rattata's, and recive %d XP when using a lucky egg.", evolves, evolves * 500 * 2 );
  91.    }
  92.    
  93.     else if ( digglet == 1 )
  94.    {
  95.          evolves = candies / 49;
  96.      if (candies < 50)
  97.       printf( "Oops, something's gone wrong :( , Not enough candies!");
  98.      else if ( evolves > pokenum )
  99.       printf( "You can evolve %d digglet's, and recive %d XP when using a lucky egg.", pokenum, pokenum * 500 * 2 );
  100.      else if ( evolves < pokenum )
  101.       printf( "You can evolve %d digglet's, and recive %d XP when using a lucky egg.", evolves, evolves * 500 * 2 );
  102.    }
  103.    
  104.    else
  105.    {
  106.       printf( "Oops, something's gone wrong :( , Unkown error check code.");
  107.    }
  108. }