home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programming
/
powerprogramming1994.iso
/
progtool
/
borland
/
jnfb88.arc
/
PALPRO.ARC
/
HYPO.SC
< prev
next >
Wrap
Text File
|
1987-10-07
|
225b
|
12 lines
PROC Hypotenuse(x,y)
w=x*x
z=y*y
RETURN (SQRT(w+z))
ENDPROC
x = 4
y = 5
? "If a right triangle has sides ",x," and ",y,","
? "then its hypotenuse is ",Hypotenuse(x,y),"."
SLEEP 4000