<mosaic.cnfolio.com>
PROGRAM
1. #include <stdio.h>
2. int main (void)
3.
4. {
5.
6. /*
7. START
8.       INPUT amount of Pidgey Pokemon
9.
10.       IF (pidgeypokemon>0) amount of Pidgey Pokemon is greater than 0
11.       THEN
12.           PRINT "Continue to enter amount of Pidgey Candy"
13.       ELSE
14.           PRINT "Not enough Pidgey Pokemon to continue"
16.
17.       INPUT amount of Pidgey Candy
18.
19.       IF (candy>=12) amount of Pidgey Candy is greater than or equal to 12
20.       THEN
21.           PRINT "Use Lucky Egg Bonus Timer"
22.       ELSE
23.           PRINT "Not enough Pidgey Candy to continue"
25.
28.
29.       GET candynew
31.
34.
35.       GET XP
37.
39.       THEN
40.           PRINT "XP gained from evolving Pidgey Pokemon ___ " (value of XP in space)
41.       ELSE
44.           PRINT "XP gained from evolving Pidgey Pokemon ___ " (value of answer3 in space)
45.
48.
49.       GET candynew
51.
54.
55.       GET XP
57.
59.       THEN
60.           PRINT "XP gained from evolving Pidgey Pokemon while using Lucky Egg Timer ___ " (value of XP in space)
61.       ELSE
64.           PRINT "XP gained from evolving Pidgey Pokemon while using Lucky Egg Timer ___ " (value of answer3 in space)
65.
66.       END
67.
68. */
69.
71.
72. pidgeypokemon=0;
73. scanf("%d",&pidgeypokemon);
74. printf ("Enter the amount of Pidgey Pokemon: %d \n" ,pidgeypokemon);
75.
76. if (pidgeypokemon>0)
77. {
78. printf ("Continue to enter amount of Pidgey Candy \n");
79. }
80.
81. else
82. {
83. printf ("Not enough Pidgey Pokemon to continue");
84.
85. return 0;
86. }
87.
88. candy=0;
89. scanf ("%d",&candy);
90. printf ("Enter the amount of Pidgey Candy: %d \n" ,candy);
91.
92. if (candy>=12)
93. {
94. printf ("Use Lucky Egg Bonus Timer \n");
95. }
96.
97. else
98. {
99. printf ("Not enough Pidgey Candy to continue \n");
100.
101. return 0;
102. }
103.
105.
106. candynew = answer + candy;
107.
109.
111.
113.
114. {
115. printf ("XP gained from evolving Pidgey Pokemon: %d XP \n",XP);
116. }
117.
118. else
119.
120. {
122.
123. printf ("XP gained from evolving Pidgey Pokemon: %d XP \n", answer3);
124. }
125.
127.
128. candynew = answer + candy;
129.
131.
133.
135.
136. {
137. printf ("XP gained from evolving Pidgey Pokemon while using Lucky Egg Timer: %d XP \n",XP);
138. }
139.
140. else
141.
142. {