Lab1B

# Student name : Tahir Roethof
# Lab 1B – Variable
# Section: 9304
# Date: 2/19/13

print (‘CALCULATE THE AREA OF A CIRCLE’)

import math
r = input(‘What is the radius of the circle?:’)
area_of_circle = math.pi*r*r
print(area_of_circle)

print(“The area of the circle with radius”, r, “is”, area_of_circle)

print (‘CALCULATE THE DISTANCE OF 2 POINTS’)

x1 = input(‘what is x1:’)
x2 = input(‘what is x2:’)
y1 = input(‘what is y1:’)
y2 = input(‘what is y2:’)

distance = (x2- x1/ y2- y1)
print(“The distance of the points”,(x1,y1), “and” , (x2,y2), “is” ,distance)