420,154 views
16 votes
16 votes
Write a program to calculate sum of first ten natural numbers​

User Jgoeders
by
2.9k points

1 Answer

21 votes
21 votes

Answer:

Step-by-step explanation:

total = 0

i = 0

while i<=10:

total = i +total

print(total)

User Littleguga
by
3.2k points