0% found this document useful (0 votes)
19 views2 pages

Area

This Python program contains code to calculate the area of a circle given its radius, the area of a square given its side length, and the area of a rectangle given its length and breadth. The user is prompted to input the radius of the circle, side of the square, length of the rectangle, and breadth of the rectangle. The program then prints the calculated areas for each shape.

Uploaded by

Ramara Ramar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views2 pages

Area

This Python program contains code to calculate the area of a circle given its radius, the area of a square given its side length, and the area of a rectangle given its length and breadth. The user is prompted to input the radius of the circle, side of the square, length of the rectangle, and breadth of the rectangle. The program then prints the calculated areas for each shape.

Uploaded by

Ramara Ramar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

NAME:V.

SKANDA VIJAY
ROLL NO:181002166
AREA OF CIRCLE AND SQUARE
r=int(input("enter the radius of the circle:"))
A = 3.14*r*r
print("area=",A)

a=float(input("enter the side of the square in cms:"))


B=a*a
print("AREA=",B)

Python 3.4.4rc1 (v3.4.4rc1:04f3f725896c, Dec 6 2015, 16:42:12) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>>
============= RESTART: D:/SKANDA VIJAY MECH C/AREA OF CIRCLE.py =============
enter the radius of the circle:6
area= 113.03999999999999
enter the side of the square in cms:5
AREA= 25.0
>>>
NAME:V.SKANDA VIJAY
ROLL NO:181002166

AREA OF RECTANGLE

a=int(input("enter the length of rectangle"))


b=int(input("enter the breadth of the rectangle"))
A=a*b
print("area=",A)

output:
enter the length of rectangle5
enter the breadth of the rectangle5
area=25.0

You might also like