Computer Science, asked by aysuh30, 10 months ago

write a program using even and odd number

Answers

Answered by aalia21
0

⏭️Hey Mate⏭️

⭕️✨If a number is evenly divisible by 2 with no remainder, then it is even. You can calculate the remainder with the modulo operator % like this num % 2 == 0 . If a number divided by 2 leaves a remainder of 1, then the number is odd. You can check for this using num % 2 == 1 .

❤️

Answered by neelamgeethikasarayu
0

Answer:

num=int(input('enter a number:'))

if num%2==0:

      print('even number')

else:

      print('odd number')

Explanation:

this the program using even and odd number in python

Attachments:
Similar questions