Enter the number from the user and depending on whether the number is even or odd, print out an appropriate message to the user.
Enter the number from the user and depending on whether the number is even or odd, print out an appropriate message to the user.
Sample Solution:-
Python Code:
Sample Output:
Enter a number: 5 This is an odd number.
Comments
Post a Comment