# breaking it down easy

The Bouncing Ball

Drop a super-ball: each bounce reaches half the height it fell from (rounded down). Below the windowsill, you lose sight of it. ⚽

You get the drop height and the windowsill limit. Print how many bounces you can SEE — bounces that reach the limit or higher.

Example:

Input: height = 100, limit = 10 Output: 3

Bounces go 50, 25, 12 — all still at least 10, so that's 3 visible bounces — then 6, which drops below the limit and disappears from view.

💡 need a hint?

brk-bouncing-ball.py🔒 given lines are locked — write your code in between
loading...