<mosaic.cnfolio.com>
PROGRAM
1. /*
2. start
3. define main functions of the body
4.
5. Integer pickme
6. integer Pidgey
7. integer PidgeyCandy
8.
9. say "Enter Enter the Pokemon you have chosen, the amount of Pokemon you have and the amount of the specific candies you have
10. say "(new paragraph) 1 for Pidgey, 2 for Nidorino, 3 for Grimer"
11.
15.
16. use this  if the first input = 1,
17.                         Integer Evolving = 12
18.                         say "(new paragraph)No of Pidgey's you have: "
19.                         say second input
20.                         say "(new paragraph)No of Pidgey Candy you have: "
21.                         say Third input
22.
23.                            if second input is less than or equal to 0
24.                            say "(new paragraph)You dont have enough Pidgeys to evolve"
25.
26.                            if third input is less than 12
27.                            say "(new paragraph)You dont have enough candy"
28.
29.                               if (third input divided by Evolving) is less than or equal to the second input
30.                               say "(new paragraph) Number of Pidgey's Evolved into Pidgeotto: (Sum of third input divided by Evolving)
31.                               say "(new paragraph) XP gained with the use of lucky egg: (Sum of third input divided by Evolving) times by 1000
32.
33.                            otherwise
34.                            say "(new paragraph) the highest amount of XP that can be gained through the LuckyEgg is: highest multiple integer of 12
35.
36.
37.
38. use this    if the first input = 2,
39.                         Integer Evolving = 100
40.                         say "(new paragraph)No of Nidorino's you have: "
41.                         say second input
42.                         say "(new paragraph)No of Nidoran Male Candy you have: "
43.                         say Third input
44.
45.                            if second input is less than or equal to 0
46.                            say "(new paragraph)You dont have enough Pidgeys to evolve"
47.
48.                            if third input is less than 100
49.                            say "(new paragraph)You dont have enough candy"
50.
51.                               if (third input divided by Evolving) is less than or equal to the second input
52.                               say "(new paragraph) Number of Nidorino's Evolved into NidoKing: (Sum of third input divided by Evolving)
53.                               say "(new paragraph) XP gained with the use of lucky egg: (Sum of third input divided by Evolving) times by 1000
54.
55.                            otherwise
56.                            say "(new paragraph) the highest amount of XP that can be gained through the LuckyEgg is: (highest multiple integer of 100) times by 1000
57.
58.
59.
60. if the first input = 1, use this
61.                         Integer Evolving = 50
62.                         say "(new paragraph)No of Grimer's you have: "
63.                         say second input
64.                         say "(new paragraph)No of Grimer Candy you have: "
65.                         say Third input
66.
67.                            if second input is less than or equal to 0
68.                            say "(new paragraph)You dont have enough Grimers to evolve"
69.
70.                            if third input is less than 50
71.                            say "(new paragraph)You dont have enough candy"
72.
73.                               if (third input divided by Evolving) is less than or equal to the second input
74.                               say "(new paragraph) Number of Grimer's Evolved into Muk: (Sum of third input divided by Evolving)
75.                               say "(new paragraph) XP gained with the use of lucky egg: (Sum of third input divided by Evolving) times by 1000
76.
77.                            otherwise
78.                            say "(new paragraph) the highest amount of XP that can be gained through the LuckyEgg is: (highest multiple integer of 50) times by 1000
79.
80. */
81.
82.
83.
84.
85.
86.
87. #include <stdio.h>
88.
89. int main(void){
90.
91. int pickme;
92. int Pidgey;
93. int PidgeyCandy;
94.
95. printf("Enter the Pokemon you have chosen, the amount of Pokemon you have and the amount of the specific candies you have");
96. printf("\n 1 for Pidgey, 2 for Nidorino, 3 for Grimer");
97.
98. scanf("%d", &pickme);
99. scanf("%d", &Pidgey);
100. scanf("%d", &PidgeyCandy);
101.
102. if(pickme == 1){
103.
104.                 int Evolving = 12;
105.
106.                    printf("\nNo of Pidgey's you have: ");
107.                    printf("%d", Pidgey);
108.                    printf("\nNo of Pidgey Candy you have: ");
109.
110.                    printf("%d", PidgeyCandy);
111.
112.                       if (Pidgey <= 0)
113.                       printf("\nYou do not have any Pidgeys to evolve");
114.
115.                       if (PidgeyCandy < 12)
116.                       printf("\nYou do not have enough candy");
117.
118.
119.                          if(PidgeyCandy/Evolving <= Pidgey){
120.                          printf("\n Number of Pidgey's Evolved into Pidgeotto: %d", PidgeyCandy/Evolving);
121.                          printf("\n XP gained with the use of a LuckyEgg: %d", (PidgeyCandy/Evolving)*1000);
122.                          }
123.                       else{
124.                       printf("\n highest possible amount of xp that can be gained through the LuckyEgg: %d", (PidgeyCandy-((Pidgey)*12))*1000);
125.
126.                }
127. }
128.
129. if(pickme == 2){
130.
131. int Evolving = 100;
132.
133.                printf("\nNo of Nidorino's you have: ");
134.                printf("%d", Pidgey);
135.                printf("\nNo of Nidoran Male Candy you have: ");
136.
137.                   printf("%d", PidgeyCandy);
138.
139.                      if (Pidgey <= 0)
140.                      printf("\nYou do not have any Nidorino(s) to evolve");
141.
142.                      if (PidgeyCandy < 100)
143.                      printf("\nYou do not have enough candy");
144.
145.
146.                   if(PidgeyCandy/Evolving <= Pidgey){
147.                   printf("\n Number of Nidorino's Evolved into NidoKing's: %d", PidgeyCandy/Evolving);
148.                   printf("\n XP gained with the use of a LuckyEgg: %d", (PidgeyCandy/Evolving)*1000);
149.                   }
150.             else{
151.             printf("\n highest amount of Nidorino's that can be evolved: %d", (PidgeyCandy-(Pidgey)*100));
152.             printf("\n highest possible amount of xp that can be gained through the LuckyEgg: %d", (PidgeyCandy-((Pidgey)*100))*1000);
153.
154.             }
155. }
156.
157. if(pickme == 3){
158.
159. int Evolving = 50;
160.
161.                printf("\nNo of Grimer's you have: ");
162.                printf("%d", Pidgey);
163.                printf("\nNo of Grimer Candy you have: ");
164.
165.                   printf("%d", PidgeyCandy);
166.
167.                      if (Pidgey <= 0)
168.                      printf("\nYou do not have any Grimer(s) to evolve");
169.
170.                      if (PidgeyCandy < 50)
171.                      printf("\nYou do not have enough candy");
172.
173.
174.                   if(PidgeyCandy/Evolving <= Pidgey){
175.                   printf("\n Number of Grimer's Evolved into Muk: %d", PidgeyCandy/Evolving);
176.                   printf("\n XP gained with the use of a LuckyEgg: %d", (PidgeyCandy/Evolving)*1000);
177.                   }
178.             else{
179.             printf("\n highest amount of Grimer's that can be evolved: %d", (PidgeyCandy-(Pidgey)*50));
180.             printf("\n highest possible amount of xp that can be gained through the LuckyEgg: %d", (PidgeyCandy-((Pidgey)*50))*1000);
181.
182.             }
183. }
184.
185. }