Jump to content

Ok, working on the "Ivory Tower " example in the Show Notes on the Coding101 Episode 4 page Did...


G+_Ray Albadon
 Share

Recommended Posts

Ok, working on the "Ivory Tower" example in the Show Notes on the Coding101 Episode 4 page. Did this:

 

int UserInput;

Console.WriteLine("Input a number between 1 and 10");

 Console.Read (UserInput);

 

Using this gives an error "No overload method for 'Read' takes 1 arguments".

 

Finally got it to work by changing it around a lot:

 

int UserInput;

Console.WriteLine("Input a number between 1 and 10");

UserInput = int.Parse(Console.ReadLine());

Link to comment
Share on other sites

 Share

×
×
  • Create New...