Computer Science, asked by ravichandrasharma25, 1 month ago

write a python program to find if a number is odd or even​

Answers

Answered by ChAish
5

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)) 

Answered by jensational
2

Answer:

I could solve the problem but it will be on Java bluej but not python

Explanation:

public class odd_check

{

public static void main(int n)

{

if (n%2=0)

{

System.out.println("Number is not odd")

}

else

{

System.out.println("Number is not odd")

}

}

}

Hope that helps!

Similar questions