A car rental firm leases its cars for $250 per day.
A car rental firm leases its cars for $250 per day. The manager gives a discount based on the number of days that the car is rented. If the rental period is greater than or equal to 7 days then a 25% discount is given. Read the period and print the discount given
Here it is in C++
    Sub rent()     Dim x, i, y As Single   i = InputBox("nb of day")      x = 250     If i >= 7 Then        y = x * i        i = y * 25 / 100      Â...