Advertisement
jinglis

Counting Project

Sep 30th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.70 KB | None | 0 0
  1. # Name: James Inglis
  2. # Course: Robotics Programming
  3. # Professor: Ms.Stockbridge
  4. # Date: 9/30/14
  5. # Description: This programs ask the user the start off the count,
  6. #              what to count by, and where to end the count.
  7. #
  8.  
  9. # Getting the starting count.
  10. start = int((input("\nPlease enter the starting count: ")))
  11.  
  12. # Getting the number to count by.
  13. count = int((input("\nPlease enter the number to count by: ")))
  14.  
  15. # Getting the number to end the count.
  16. end = int((input("\nPlease enter the number to end: ")))
  17.  
  18. # incrementing.. and displaying the progress of the counting.
  19. for start in range(start, end + 1, count):
  20.     print(start, end="\n")
  21.  
  22.  
  23. input("Press any key to continue")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement