- 1
Please help me solve the questions
You need to plan a road trip. You are traveling at an average speed of 40 miles an hour. Given a distance in miles as input (the code to take input is already present), output to the console the time it will take you to cover it in minutes. Sample Input: 150 Sample Output: 225
3 Respuestas
+ 3
This is your solution
https://code.sololearn.com/Wj8CzNv9Ydvl/?ref=app
+ 2
Where is your attempts?
0
40 miles are covered in 1 hour = 60 min
80 => 120
20 => 30
150 => 225
that's very basic maths ^^
show your attempt if your problem is in impkementing the code for applying the easy formula ;P