fork download
  1. n = 5
  2. sum = 0
  3. for i in range(1,n+1):
  4. sum+=i
  5.  
  6. print("The sum of the number",sum)
Success #stdin #stdout 0.02s 7240KB
stdin
45
stdout
('The sum of the number', 15)