Private Sub Command1_Click()
x = Val(InputBox("x="))
y = Val(InputBox("y="))
Call fun1(x, y, r1)
Print "fun1:r1="; r1
Call fun2(x, y)
End Sub
Sub fun1(x, y, r)
r = Sqr(x * x + y * y)
End Sub
Sub fun2(x, y)
r = Sqr(x * x + y * y)
Print "fun2:r1="; r
End Sub