sum of nos Question Print sum of nos from 1 to 12. solved 1 Python YashikaKhurana 55 years 2 Answers 1169 views Master 0
Answers ( 2 )
sum=0
for i in range(1, 13):
sum=sum+i
print(sum)
sum =0
for k in range(1,13):
sum = sum + k
print(sum)
sum=0
for i in range(1,13):
sum+=i
print(sum)