Home
About
Contact
Header Ads Widget
Home
Coding Questions
_C/C++ Programs
_Python Programs
_Data Structure Programs
_Competitive Coding
Practice Problems
Key Points
Notes
MCQs
Interview
Trends
Home
python_programs
Write a python program to print all odd number upto a given range.
Write a python program to print all odd number upto a given range.
Rajnish Tripathi
20:15
code:-
r=
int
(
input
(
"Enter range"
))
for
i
in
range
(
1
,
r+
1
,
2
):
print
(
i
,
end=
" "
)
Output:-
Enter range50
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
Post a Comment
1 Comments
Sadab Hussain
00:41
Very helpful sir
Reply
Delete
Replies
Reply
Add comment
Load more...
Popular post
Python : missing characters : hackerrank solution
23:01
PPS 1st year (C programming ) handwritten notes Aktu
11:47
pps unit 1 notes
09:54
Social Plugin
MCQs
3/MCQs/post-list
Tags
c-programs
Companies
competitve programs
Data structure
doubts
key points
MCQs
Notes
practice problems
python
1 Comments
Very helpful sir
ReplyDelete