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 even number upto a given range.
Write a python program to print all even number upto a given range.
Rajnish Tripathi
20:11
code:-
r=
int
(
input
(
"Enter range "
))
for
i
in
range
(
2
,
r+
1
,
2
):
print
(
i
,
end=
" "
)
Output:-
Enter
range
50
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
Post a Comment
1 Comments
Sadab Hussain
00:40
Very easy way sir thanku
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 easy way sir thanku
ReplyDelete