Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
i am not getting correct even odd numbers count from given range of numbers (range -5 to 7)...
(i%2)
+
+1
=
==
0
0:
1
a
b
b+1):
count
else:
even
even_count
for
i
if
in
int(input())
odd
odd_count
print(even_count)
print(odd_count)
range(a
0 Votes
3 Answers
23rd Feb 2021, 9:58 AM
anil jampani
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
How to allow one instance of exe
2 Votes
Reverse observer pattern : remove dynamic_cast
2 Votes
What has happened?
1 Votes
Theater management help me
2 Votes
Python
1 Votes
What should I add/improve ?
1 Votes
Should You Specialize or Diversify in Programming?
1 Votes
Tools for web design?
1 Votes
Flight tracker coding foundation help me
1 Votes
Remove raw pointer from observer design pattern
0 Votes