coding error

Outcome should either be “Thursday” or “There is no such day” depending what number you write Somehow i can’t seem to get the code right. I’m a newbie @ VB.

The Code is below

Dim IntDay As Integer = 5 Dim StringDay As String = String.Empty Dim Tracy As String = “There is no such day” Select Case IntDay Case 1 StringDay = “Sunday” Case 2 StringDay = “Monday” Case 3 StringDay = “Tuseday” Case 4 StringDay = “Wednesday” Case 5 StringDay = “Thurday” Case 6 StringDay = “Friday” Case 7 StringDay = “Saturday” Case Else Console.WriteLine(Tracy) End Select Console.WriteLine(StringDay) ‘ = Thursday or there is no such day

submitted by /u/Nqobyle
[link] [comments]

Leave a Reply