Computer Science, asked by tanishq2106, 30 days ago

Write a program in python to get the sum of odd numbers between 11 and 122?​

Answers

Answered by jainhemlata8
0

Answer:

Program to find the sum of first n odd numbers in Python

if n is same as 0, then. return 0.

sum := 1, count := 0, temp := 1.

while count < n-1, do. temp := temp + 2. sum := sum + temp. count := count + 1.

return sum.

Similar questions