Taigar2000

Task C

Oct 15th, 2020
1,032
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2. s = 0
  3. for i in range(1, n):
  4.     if(i != 1):
  5.         print('+',end='')
  6.     print(i, '*', i+1, sep='', end='')
  7.     s += i*(i+1)
  8. print('='+str(s))
  9.  
RAW Paste Data