SHARE
TWEET

Untitled

a guest Mar 20th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def main():
  2.  
  3.     speed= int(input("What is the speed of the vehicle in mph? ",))
  4.     Hours= int(input("How many hours has it traveled? ",))
  5.     print("Hour\tDistance Traveled")
  6.     for time in range (1,1+ Hours):
  7.         Distance_traveled =(speed * time)
  8.         print (time," \t" , Distance_traveled, "miles")
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17. main()
RAW Paste Data
Top