logo CodeStepByStep logo

ParameterMystery1

Language/Type: VB parameters

The following console program uses parameters and produces two lines of output. What are they?

Public Module ParameterMystery1
    Public Sub Main()
        Dim x As Integer = 9
        Dim y As Integer = 2
        Dim z As Integer = 5

        Mystery(z, y, x)
        Mystery(y, x, z)
    End Sub

    Public Sub Mystery(x As Integer, z As Integer, y As Integer)
        Console.WriteLine(z & ", " & (y - x))
    End Sub
End Module
line 1
line 2

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.