fork download
  1. natural_number = 14
  2. sum=0
  3. for i in range(natural_number, -1, -1):
  4. sum = sum + i
  5.  
  6. print("The Total Sum Of",natural_number, "Natural Numbers Is:", sum)
Success #stdin #stdout 0.04s 9588KB
stdin
Standard input is empty
stdout
The Total Sum Of 14 Natural Numbers Is: 105