Write a program in python to get the sum of odd numbers between 11 and 122?
Answers
Answered by
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
Math,
1 month ago
Business Studies,
1 month ago
Math,
9 months ago
Math,
9 months ago
Math,
9 months ago