- 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
6 odpowiedzi
+ 2
Krupa Mani
It's a simple mathematical calculation. Try self.
+ 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);
0
Read the lessons and examples before, then you can solve it yourself
0
var x = 60 * (590 / 40);
console.log(x);
In this code any worng
- 1
How to use in console, log
- 1
Can u tell me any one plz