User:Gohil kartik

From Wikibooks, open books for an open world
Jump to navigation Jump to search

A car rental shop has two plans. In the first plan, you can rent a car for Rs.4000 per day with unlimited kilometer. In the second plan, you can rent a car for Rs.1500 per day with an extra charge of Rs.9 per kilometer. Write a program to suggest the best plan to the customer based on the given the number of days and the total number of kilometer he/ she plans to drive the car. Check the boundary conditions and print 'Invalid input' if not satisifed.



Input Format:

Read the number of days

Read the number of kilometres

Output Format:

Plan 1 or Plan 2

Boundary Conditions:

All input >0