<mosaic.cnfolio.com>
PROGRAM
  1. /*
  2. Start
  3. Obtain the amount of Pidgey Pokemon
  4. Obtain the amount of Pidgey Candy
  5.    IF Candy is a multiple of 12
  6.       THEN
  7.         Display message "evolving Pokemon"
  8.         Display max amount of XP
  9.       ELSE
  10.         Display error messages
  11.    END IF
  12.        
  13. END
  14. */
  15.  
  16. int main (void)
  17.  
  18. {
  19.  
  20.  int pidgey;
  21.  int candy;
  22.  
  23.  scanf("%d", &pidgey);
  24.  scanf("%d", &candy);
  25.  
  26.  if ((candy %=12) == 0)
  27.  
  28.  {
  29.  
  30.  printf("Evolving your Pokemon... \n");
  31.  printf("Max XP of = %d", pidgey*500*2);
  32.  
  33.  }
  34.  
  35.  else
  36.  
  37.  {
  38.  
  39.  printf ("Error... \n");
  40.  printf ("You don't enough candy to evolve this Pokemon \n");
  41.    
  42.  }
  43.  
  44.  
  45. }