Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Write a program that asks the user how far they ran (in miles)
- * and then how long it took them (in minutes), and print out
- * their speed in miles per hour. */
- function start(){
- var num = readInt("How long did you run in miles? ");
- var numtwo = readInt("How long would that be for in minutes? ");
- numtwo = numtwo / 14;
- var timeboi = (numtwo * num);
- print(timeboi + " is your speed");
- timeboi = (timeboi * 60);
- print(timeboi);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement