Write a program to print the sum of all odd numbers from 3 to 20
Answers
Answered by
1
, you follow me I follow you back
Answered by
1
this is python :-
for (number) in range (1,21):
print(number)
Explanation:
output:-
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
note:-the names in brackets are called COUNTER VARIBLE.you can put any name in that brackets but same number in all brackets.and write always the next number(here 21 to get upto 20).
Similar questions