Assignment-1/testing_code/p3.py

10 lines
151 B
Python

# Foo computes some function of a, b, and c.
def foo(a, b, c):
x = a * b
y = x / c
z = y * y
return z
foo(1, 2, 3)
foo(1.0, 2.0, 3.0)