Lab 1b

Description:

For lab 1b we had to write a code that could find the radius of a circle.

Code:

#Mabel Fermin
# Lab 1B – Variables
# Section: 9310
#Date: 2/23/13

import math

strRad = input (“Please input the radius of your circle =>”)
filtRad = float (strRad)
##print (strRad)

area = math.pi * filtRad ** 2

##print(area)

print (“the area of the circle with radius”, filtRad, “is:”, area)

Radius = 3

Screenshot: