Ex: Console.WriteLine("Enter Sex");
Console.Read();
Console.WriteLine("enter Place");
Console.ReadLine();
o/p:
Enter Sex
M
Enter Place
here place value not taken (readLine takes enter value)
when we give character and press enter, enter value takes readLine() method. how to skip this
Jeeva SubburajPosted Apr 5, 2019, 11:40 AM
Amit GuptaPosted Apr 5, 2019, 7:07 AM
Piyush PansuriyaPosted Apr 4, 2019, 3:53 AM
GOPIKRISHNA TIRUVEEDHULAPosted Apr 4, 2019, 3:06 AM
Piyush PansuriyaPosted Apr 4, 2019, 2:25 AM
GOPIKRISHNA TIRUVEEDHULAPosted Apr 4, 2019, 1:57 AM
{
int i;
while ((i = Console.Read()) != 0)
{
Console.WriteLine("{0}={1}", i, (char)i);
}
Console.ReadKey();
}
How to skip 13,10 characters last
Piyush PansuriyaPosted Apr 4, 2019, 1:54 AM