- 1
distance 150 miles and speed 40mls/h i dont undesrtand how code it to output 225 in console
function main() { var distance = parseInt(readLine(),10);
12 Respostas
+ 4
Time taken = 150/40 hours = 3.75 hours = 225 minutes
+ 4
I'm not sure if this is what you want either.
https://code.sololearn.com/cx2ccl4t0iZt/?ref=app
+ 2
the questions it is travel measured by miles 150 and the speed its 40 mls in hours how code it to input 150 and output 225
+ 2
You will have to consider how many minutes are in an hour.
+ 2
yes but how create a code start by this in top (main ...ect)
+ 2
Abdallah benaicha is Swift the language you're after?
+ 1
Write question in question title not code .And also place your code in description so we can see what you have tried so far.
+ 1
Sonic 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
+ 1
Sonic your work is very beautiful but the code in this exercise start with that .... function main() {
var distance = parseInt(readLine(), 10);
//your code goes here
}
+ 1
Sonic the language is Java Script .. thank you so much but the last code don't work like i want and thank you so much for your help