logo CodeStepByStep logo


Language/Type: VB basics mystery variables

What are the values of a, b, and c after the following code statements? (It may help you to write down their values after each line.)

Dim a As Integer = 5
Dim b As Integer = 10
Dim c As Integer = b
a = a + 1
b = b - 1
c = c + a

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.