Numeric variables

  1. How would the output from our numeric variable demonstration program change if instead of declaring IntA as:
       Dim intA As Integer = 0
    
    We had said:
    1. Dim intA As Integer = (5)
    2. Dim intA As Integer = (5 + 5 + 12)
    3. Dim intA As Integer = "25"
    4. Dim intA As Integer = Cint("25")
  2. How would the output from our numeric variable demonstration program change if we changed the order of the two instructions from:
       intA = 3
       intB = intA + 3
    
    To:
       intB = intA + 3
       intA = 3
    

  3. How would the output from our numeric variable demonstration program change if we changed the order of the two instructions from:
       Label11.Text = CStr(intC / (intA + intB) * 2 * intC / (intA + intB))
       Label12.Text = CStr(intA + intA + intA + intA + intA)
    
    To:
       Label12.Text = CStr(intA + intA + intA + intA + intA)
       Label11.Text = CStr(intC / (intA + intB) * 2 * intC / (intA + intB))
    

Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.