fork download
  1. natural_number = 10
  2.  
  3. # formula for the sum of natural numbers
  4. sum = natural_number*(natural_number+1)//2
  5. print("The Total Sum Of",natural_number, "Natural Numbers Is:", sum)
Success #stdin #stdout 0.03s 9668KB
stdin
Standard input is empty
stdout
The Total Sum Of 10 Natural Numbers Is: 55