Computer Science, asked by chaurasiap311, 3 months ago

write a program to print the sum and the product of number 1 to 30​

Answers

Answered by alphinfrancis25
1

Answer:

sum=0

product=1

for i in range (1,31):

          sum=sum+i

          product=product*i

print('sum of numbers:',sum)

print('product of numbers:',product)

         

Hope This Helps You

         

Similar questions