Hello All,
I have been researching and trying to figure out why the first WriteLine isn't printing out the entire line when I debug the code. I'm sure I am missing something really silly but I just can't figure it out. Can somebody please explain to me why the C in the first line isn't printing out when I debug ... System.Console.WriteLine("The answer is", C)
I have been researching and trying to figure out why the first WriteLine isn't printing out the entire line when I debug the code. I'm sure I am missing something really silly but I just can't figure it out. Can somebody please explain to me why the C in the first line isn't printing out when I debug ... System.Console.WriteLine("The answer is", C)
VB.NET:
Module Module1
Sub Main()
Dim A As Integer = 2
Dim B As Integer = 10
Dim C As Integer
Try
C = B / A
System.Console.WriteLine("The answer is", C)
System.Console.WriteLine(C)
System.Console.WriteLine("Press Enter to continue...")
Console.ReadLine()
Catch e As OverflowException
System.Console.WriteLine("An overflow exception occured.")
System.Console.WriteLine("Press Enter to continue...")
System.Console.ReadLine()
End Try
End Sub
End Module