Write a python code that displays the sum of first 10 natural numbers.
Please help me.
Answers
Answered by
0
Question:-
Write a Python code that displays the sum of first 10 natural numbers.
Program:-
s=0
for i in range(1,11):
s=s+i
print("Sum of first 10 natural numbers is: ",s)
Similar questions