Can anyone help with problem

Hi so I’m trying to write a program that will calculate for me the final price for car rent.

I’m trying to make it that for every 1000km it would add €10 so 2000km would add €20 and if it’s below 1000km it wouldn’t add €10 but I don’t know what way to go about it. Is it a simple maths problem or?

Thanks
This is a simple maths problem.

Number of km, divided by 1000. Round down. Now multiply that by 10.
Topic archived. No new replies allowed.