Problem
A colony starts with X rabbits.
Each day, every group of 4 rabbits produces 3 new rabbits. That is, the number of new rabbits born each day is floor(rabbits / 4) × 3.
Simulate D days and output the final population.
Each day, every group of 4 rabbits produces 3 new rabbits. That is, the number of new rabbits born each day is floor(rabbits / 4) × 3.
Simulate D days and output the final population.
Input Variables (pre-loaded)
💡 Drag X and D from the Inputs category.
Your Output
Result
—
Run your program to see the result.
Execution Log
Ready. Press ▶ Run to start.
Expected Answer
Answer:
?
Hint
Step 0