1. Program to check whether a number is even or odd? ann the values of two variables
Answers
Answered by
0
Answer:
int (input (“Enter any number to test whether it is odd or even: “) if (num % 2) == 0: print (“The number is even”) else: print (“The provided number is odd”) Output: Enter any number to test whether it is odd or even: 887 887 is odd.
Similar questions