Car Fuel Check

Programming Interview Easy 11 views
Back to Questions

Problem Description

Distance d, mileage m (km per litre) and fuel f are provided. Create Car class can_reach(d) returns YES if fuel enough else NO.

Input Format

One line: d m f.

Output Format

YES or NO.

Sample Test Case

Input:
120 15 5
Output:
YES

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next