(adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-2960223314593660", enable_page_level_ads: true }); Program to find if the given number is even or odd - TecGlance

Header Ads

Program to find if the given number is even or odd



===================== EVEN AND ODD =====================





 a=input("Enter a number :")

 if a%2==0:

     print a," is a Even Number"

 else:

      print a," is a Odd Number"







====================== OUTPUT ====================== 



 Enter a number :28

 28  is a Even Number



====================== OUTPUT =======================



 Enter a number :49

 49  is a Odd Number



======================================================

No comments

Powered by Blogger.