<mosaic.cnfolio.com>
PROGRAM
  1. /*START
  2.    Input 1, input 2, c input 1 is the number of pokemon, input 2 is the amount of candy
  3.       If input 1 and input 2 are above zero allowing the error message to be displayed for missing/invalid inputs
  4.          ELSE display error message informing user how to input the data to achive the required output if put in incorrectly
  5.       END IF
  6.    Divide input 2 by 12 = c divides number of pidgey candies by amount needed to evolve creating amount that can be evolved as new input
  7.       IF input 1>c if number of pokemon is greater than the amount that can be evolved
  8.          THEN multiply c by 1000 multiplies amount that can be evolved by 1000
  9.             THEN display as output displays message stating the amount of xp that will be gained
  10.       ELSE IF input 1 = c if number of pokemon is equal to amount that can be evolved
  11.          THEN multiply c by 1000 multiplies amount that cna be evolved by 1000
  12.             THEN display as output displays message stating the amount of xp that will be gained
  13.       ELSE IF input 1 < c  if amount that can be evolved is greater than number of pokemon
  14.          THEN multiply input 1 by 1000  multiplies the number of pokemon by 1000
  15.             THEN display as output  displays message stating the amount of xp that will be gained
  16.       END IF
  17. END*/
  18.  
  19. #include <stdio.h>
  20. int main( void)
  21. { 
  22.    int number1, number2, d;
  23.       scanf( "%d %d", &number1, &number2); /* scans inputs */
  24.          if(number1&&number2);
  25.             else{
  26.                printf("Please put in the amount of pokemon and amount of pokemon candies respectively with a space between");
  27.                   return(0);}
  28.       {d = number2 / 12;
  29.        if(number1==d)
  30.           printf("the amount of xp you will earn is %d",d*1000);
  31.              else if(number1 > d)
  32.                 printf("the amount of xp you will earn is %d",d*1000);
  33.                    else if(number1 < d)
  34.                      printf("the amount of xp you will earn is %d",number1*1000);
  35.       }
  36.             
  37. }