227k views
12 votes
Write a program to calculate sum of first ten natural numbers​

1 Answer

1 vote

Answer:

Step-by-step explanation:

total = 0

i = 0

while i<=10:

total = i +total

print(total)

User Sucrenoir
by
5.7k points