vb.net - How to do this in Visual basic? -


How to do "a ++" and "b ++" in the visual origin?

What are the other codes in VB?

The names are just examples.

  int a = 0; Int b = 0; {If (ans1.Text == "James") {a ++; } And {B ++; } If (ans2.Text == "Ryan") {a ++; } And {B ++; } If (ans3.Text == "Mac") {a ++; } And {B ++; } T1.Text = a.ToString (); T2.Text = b.ToString (); }  

like this:

  a + 1 B + = 1 (...)  

Comments