It was just a normal day, here at your military base. Suddenly, you looked up to see a bomb falling down from the sky! You need to create a program to predict where it will fall, and tell you the location.
You will be given a bomb in the form of
Start-X Start-Y X-velocity Y-velocity. You can assume that they will all be positive integers. 0 is a valid input only for
Start-y. The bomb starts with x
Start-x, and y
Start-y. Each "frame" (no graphical output required), the bomb will move
x-velocity units right, then
y-velocity units down. Continue doing this until the bomb reaches y of 0 or below. Then, output what it's x was when it hit the ground.
0 10 2 2
5 4 3 2
This is code-golf, so shortest answer in bytes wins!