Lesson 5: Counting numbers with for loop
Post date: Nov 3, 2017 2:57:59 PM
print("1")
print("2")
print("3")
for x in range(1,101):
print(x)
total = 0
ub = int(input("Give me ub:"))
for x in range(0,ub+1):
total = total + x
print ("The total is", total)
start = 1
for x in range(0, ub + 1):
print(start)
start += 2
if start > ub:
break