Can I get some help with this Program Please it is in C++ and it isn't responding right......
Module Module1 Sub Main() Dim myInt As Integer = Nothing Console.WriteLine("Please enter an Integer") myInt = Console.ReadLine() Select Case myInt Case 0 Console.ReadLine("Jefferson") Case 1 Console.ReadLine("Washington") Case 2 Console.ReadLine("Lincoln") Case 3 Console.ReadLine("Roosevelt") End Select Console.ReadLine() End Sub End Module
Can you help me please
this doesnt look C++
it is written in VB 2010
no idea sorry :(
the problem I am having is getting to run properly where the names are written is causing it to not run properly
i get what u doing wrong :)
Case 0 Console.ReadLine("Jefferson") Case 1 Console.ReadLine("Washington") Case 2 Console.ReadLine("Lincoln") Case 3 Console.ReadLine("Roosevelt")
if 0, u wanto print Jefferson, right ?
yes
you should use Console.WriteLine for that
change the code line below it shoudl work
but the program has to read the different cases of each
Module Module1 Sub Main() Dim myInt As Integer = Nothing Console.WriteLine("Please enter an Integer") myInt = Console.ReadLine() Select Case myInt Case 0 Console.WriteLine("Jefferson") Case 1 Console.WriteLine("Washington") Case 2 Console.WriteLine("Lincoln") Case 3 Console.WriteLine("Roosevelt") End Select Console.ReadLine() End Sub End Module
I will try it and see if that works
okie doke
good luck :D
Join our real-time social learning platform and learn together with your friends!