Class 9 : Computer Software Project work

 1. Write a program in python programming language to find the area of rectangle.

        l=input("Enter the length",l)

        b=input("Enter the breadth",b)

        aor = l*b

        print "The are of rectangle is", aor



2.. Write a progam in python programming language to find the area of circle.

    r=input("Enter the radius=")

    pi=22/7

    aoc=pi*r*r

    print "The area of cicle is ", aoc



3. Write a program in python programming language to compare between 2 numbers to find and display the greatest number.

    fn=input("Enter the first number=")

    sn=input("Enter the second number=")

    if(fn>sn):

        print "The greatest number is ",fn

    else:

        print "The greatest number is ",sn



4. Write a program in python programming language to find the entered number is odd or even


n=input("Enter any number=")

r=n%2

if(r==0):

    print"The entered number is Even"

else

    print"The entered number is Odd"


Written By

Helping Students Succeed • •Free Book Solutions and Study Guides • sandesh_Shiwakoti