Skip to content
Onsite

Enough Fuel Consumption

EasyP3Coding

The fuel needed for a trip is fuel * distance. Return "Enough" if that product is strictly greater than 50, otherwise return "Go On".

Example 1

Input
fuel = 10, distance = 6
Output
"Enough"
Why
10 * 6 = 60 is above 50.

Example 2

Input
fuel = 5, distance = 10
Output
"Go On"
Why
5 * 10 = 50 is not above 50.

Example 3

Input
fuel = 7, distance = 7
Output
"Go On"

Constraints

  • 0 <= fuel, distance <= 10^4

Hints

Run checks the 3 visible tests, Submit all 8.