console.read

  1. L

    Question Read() and ReadLine()

    Hi, I am new to this forum and C#. I have following code. Console.WriteLine("Enter a character"); int int1 = Console.Read(); Console.WriteLine(int1); Console.WriteLine("Enter a string of characters"); string string1 = Console.ReadLine(); Console.WriteLine(string1); Console.ReadLine(); When I...
Top Bottom