Computer Science, asked by Anonymous, 7 months ago

Write a program in python to check whether the given number is even or odd. If Even, Print the next number .If Odd, Print the Previous Number.

Answers

Answered by jyotigupta64
4

Explanation:

In this program, user is asked to input a character. The program checks whether the entered character is equal to the lowercase or uppercase vowels, if it is then the program prints a message saying that the character is a Vowel else it prints that the character is a Consonant...

Answered by Chandra1972
13

Explanation:

Python Program to Check if a Number is Odd or Even

num = int(input("Enter a number: "))

if (num % 2) == 0:

print("{0} is Even number". format(num))

else:

print("{0} is Odd number". format(num))

Hope this helps mate ☺️.

Similar questions