Showing posts with label odd and even number in python. Show all posts
Showing posts with label odd and even number in python. Show all posts

Friday, December 18, 2015

Odd and Even Number in Python

A simple program that I wrote in Python programming language to check if the number given by the user is odd or even number.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.



Sample Program Output


Program Listing

print('\n')
print('\t Odd and Even Number Checker')
print('\n')
number_value = int(input('Enter a Number : '))

if (number_value % 2) == 0:
   print(" The given number {0} is an EVEN number.".format(number_value))
else:
   print("The given number {0} is an ODD number.".format(number_value))

print('\n')
print('Thank you for using this program')