No products in the cart.

What is the program to find …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

What is the program to find if a number is odd or even
  • 1 answers

Preeti Dabral 1 year, 8 months ago

def check(n):
      if (n < 2):
      return (n % 2 = = 0)
      return (check (n-2))
      #-- main --
      n = int (raw_input ("Enter a number:"))
      if check (n):
           print ("Number is Even")
      else:
            print ("Number is Odd")

http://mycbseguide.com/examin8/

Related Questions

Draw the flow chart.
  • 0 answers
Define networking with two examples
  • 1 answers
What is database system
  • 2 answers
Full form of WWW
  • 3 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App