lesson6_17_ear_2

# -*- coding: utf-8 -*-
"""
@authors: katkaranikola stkarlos
"""

t = raw_input(' give only one digit: ')
number = int (raw_input(' give how many terms to produce: '))

s = 0
for i in range(1, number + 1):
    s = s + int(t * i)
    print " the term that is produced is on %d iteration is %s and the current sum is %d" %(i, t * i, s)
print " the final sum equals to: ", s

 

Posted in Uncategorized