A Python program to accept a number from the keyboard and test whether it is even or odd.

#to know if a given number is even or odd.
x = int(input("Enter a number: "))
if x%2==0:
    print(x, " is even number.")
else:
    print(x, " is odd number.")

OUTPUT:
Enter a number: 8
8  is even number.

Related Examples

1. A python program to calculate the area of a circle.

2. A Python program to test whether a number is even or odd.

3. A Python program to check whether a given number is in between 1 and 10.

4. A Python program to display and sum of a list of numbers using while loop.

Leave a Reply

Your email address will not be published. Required fields are marked *

Wordpress Social Share Plugin powered by Ultimatelysocial
Wordpress Social Share Plugin powered by Ultimatelysocial
hacklink al dizi film izle film izle yabancı dizi izle fethiye escort bayan escort - vip elit escort erotik film izle hack forum türk ifşa the prepared organik hit hiltonbetbetebetmarsbahishasbetsupertotobet girişjojobetcasinolevantjojobetjojobet girişjojobetbetebetmarsbahiscasibom adresjojobetjojobet girişjojobet girişcratosroyalbetcratosroyalbetmarsbahis güncel girişcasibom girişmatbetmarsbahis girişbetriyaltümbet istanbul masajCasinoplus girişultrabetjojobet girişcratosslotjojobetbetoffice twitterjojobetcasibomjojobet girişJojobettümbet giriştümbet twitterultrabet girişlunabet girişasyabahiscasibomlunabetvaycasinomegabahismatadorbetbaywinbaywin girişpadişahbetbetorspinpornpoocoinbettilt girişbettilt twittermarsbahisbettilt twitterbettilt girişvaycasinosophie rain leakmegabahis girişsonbahis sonbahis güncelBetwoonCratosroyalbetmeritkingmeritking twitterjojobetJojobet