1.

PLz answer the attchment fast

Answer»

sum = 0

i = 0

PRINT("Natural number from 1- 10")

while i < 10:

     print(i)

     sum = sum + i

    i = i + 1

Print("sum of the 10 natural number")

print(sum)

NOTE: you did not mention the language so i wrote the CODE in python 3



Discussion

No Comment Found