c=0 num=0 n=8 while True: c=c+1 num=num+c if c == n: break print(num)