<mosaic.cnfolio.com>
PROGRAM
  1. #include <stdio.h>
  2. int main (void)
  3. {
  4. int pidgeys;
  5. int pidgeysc;
  6. int luckyxp;
  7. int xp;
  8.  
  9. scanf("%d %d %d",&xp, &pidgeys, &pidgeysc);
  10.  
  11. int evolvesc = pidgeysc/12;
  12.  
  13.  
  14.      if (xp == 1)
  15.      
  16. int luckyxp = 500;
  17.  
  18. else if (xp == 2)
  19.  
  20. int lcukyxp = 1000;
  21.  
  22. else if (pidgeys < 1)
  23.  
  24. printf("An Error! has occured, please ensure you have enough Pidgeys to make an evolve.");
  25.  
  26.  
  27. else if (pidgeysc < 12)
  28.  
  29. printf("An Error! has occured, please ensure you have enough candies to make one evolve.");
  30.  
  31.  
  32. else if (pidgeys > evolvesc)
  33.  
  34. printf("%dXP Pidge higher than evolvesc ", evolvesc * luckyxp);
  35.  
  36.  
  37. else if (pidgeys < evolvesc)
  38.  
  39. printf("%dXP more evolves then pidges ", pidgeys * luckyxp);
  40.  
  41.  
  42. else if ( pidgeys == evolvesc)
  43.  
  44. printf(" Your total experiance gain is %dXP Candies equal pidges ", evolvesc * luckyxp);
  45.  
  46. }