#Max Low
#9-27-17
#loopDemo.py -- how to use loops


"""#print I love computer science 5 times
for i in range(1,5):
    print('I love computer science')"""
    
"""i = 1
while i <= 5:
    print('I <3 Computer Science')
    i = i+1"""

"""
# print the numbers from 1-20
for i in range(1,21):
    print(i)"""
"""i =1
while i<=20:
    print(i)
    i = i+1"""


"""#print out the odd numbers from 13-27
for i in range(13,28,2): # go up by 2 each time
        print(i)"""
        
"""i =13
while i <=27:
    print(i)
    i = i + 2"""

        
"""#add up the numbers from 1-5
total = 0
for i in range(1,6):
    total = total+i
print(total)
"""
    
total = 0
i =1 
while i <= 5:
    total = total + i 
    i += 1 # means i = i+1
print(total)