- 3

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

Give me the how to code

5th Jul 2021, 8:56 AM
Krupa Mani
Krupa Mani - avatar
6 Answers
+ 2
Krupa Mani It's a simple mathematical calculation. Try self.
5th Jul 2021, 9:34 AM
A͢J
A͢J - avatar
+ 1
Your code is correct. But you need to write a code that will work for any input, not just that one test case. You can declare distance as input variable to take the input from the compiler , then manipulate what you get into what you need to output. That's why distance variable is already given us var distance = parseInt(readLine(), 10);
5th Jul 2021, 11:32 AM
Simba
Simba - avatar
0
Read the lessons and examples before, then you can solve it yourself
5th Jul 2021, 9:57 AM
Benjamin JĂźrgens
Benjamin JĂźrgens - avatar
0
var x = 60 * (590 / 40); console.log(x); In this code any worng
5th Jul 2021, 10:14 AM
Krupa Mani
Krupa Mani - avatar
- 1
How to use in console, log
5th Jul 2021, 9:34 AM
Krupa Mani
Krupa Mani - avatar
- 1
Can u tell me any one plz
5th Jul 2021, 9:49 AM
Krupa Mani
Krupa Mani - avatar