<mosaic.cnfolio.com>
PROGRAM
  1. /*
  2. START
  3.    Obtain 2 inputs
  4.    Display Hello! Please enter the amount of pidgey pokemons and pidgey candies you have
  5.    Multiply the amount of pidgey pokemons by 1000 to get the total XP
  6.    IF number of pidgey candies is equal to or more than 12
  7.       THEN
  8.          Display the total XP
  9.       ElSE
  10.          IF the number of pidgey candies is less than 12
  11.       THEN
  12.          Display You dont have enough candies to evolve the pokemon
  13.       END IF
  14.    END IF
  15. END
  16. */
  17.  
  18. #include <stdio.h>
  19.  
  20. int main(void)
  21. {
  22. int numberofpokemons;
  23. int numberofcandies;   
  24.       
  25. printf("Hello! how many pokemons do you want to evolve?");
  26. scanf("%d", &numberofpokemons);
  27. printf("\nHow many candies do you have?");
  28. scanf("%d", &numberofcandies);
  29.  
  30. if(numberofcandies>=12 * numberofpokemons)
  31. {printf("\nThe total xp is %d", numberofpokemons * 1000);
  32. }
  33. else(numberofcandies< 12 * numberofpokemons);
  34. {printf("\nYou dont have enough candies to evolve the pokemon");
  35. }   
  36. }