Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Name: James Inglis
- # Course: Robotics Programming
- # Professor: Ms.Stockbridge
- # Date: 9/30/14
- # Description: This programs ask the user the start off the count,
- # what to count by, and where to end the count.
- #
- # Getting the starting count.
- start = int((input("\nPlease enter the starting count: ")))
- # Getting the number to count by.
- count = int((input("\nPlease enter the number to count by: ")))
- # Getting the number to end the count.
- end = int((input("\nPlease enter the number to end: ")))
- # incrementing.. and displaying the progress of the counting.
- for start in range(start, end + 1, count):
- print(start, end="\n")
- input("Press any key to continue")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement