Ants are amazing. They are hard-working, very organized, and construct amazing habitats.
Knowing that you’ve decided to start keeping an ant colony in an aquarium at home.
nants from a friend of yours and you’re wondering how many ants will there be in
yyears. Your friend tells you that the colony size increases by
ppercent every year. So, you decide to do the calculation for each of the next
nyears and see what the progress will look like.
The program will receive 3 integers. The number of ants your friend gave you
n, the number of years you’re interested
y, and the growth percentage
150 8 10
165 181.5 199.65 219.615 241.5765 265.73415 292.307565 321.5383215
Time limit: 1 seconds
Memory limit: 512 MB
Output limit: 1 MB