program to print sum of natural numbers between 1 to 7. Get link Facebook X Pinterest Email Other Apps - July 12, 2020 Sum=0For n in range(1,8): sum+=nprint("sum of natural numbers<=",n,'is',sum)OutputSum of natural numbers <= 7 is 28 Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment