#programme to count all the even and odd no. from 1 to n.....
plz tell the answer.....
don't tell any ridiculous answer...
plz it's urgent......
Answers
Answered by
2
- To print multiplication table we need to iterate from 1 to 10. Run a loop from 1 to 10 , increment 1 on each iteration. The loop structure should look like for(i=1; i<=10; i++) . Inside loop generate multiplication table using num * i and print in specified format.
hope this will help you.....✌✌
Answered by
27
Answer:
odd=0
even=0
n=int(input('enter you no.:-'))
for a in range(1,n+1):
if a%2==0:
even+=1
else:
odd+=1
print('even no. between 1 and',n,"=",even )
print('odd no. between 1 and',n,"=",odd )
THANKYOU : )
Similar questions