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

Piyush PansuriyaRank #454 · 5.5K reputationPosted Apr 3, 2019, 10:25 PM EDT
Piyush PansuriyaRank #454 · 5.5K reputationPosted Apr 3, 2019, 11:53 PM EDT
Piyush PansuriyaRank #454 · 5.5K reputationPosted Apr 3, 2019, 9:54 PM EDT
GOPIKRISHNA TIRUVEEDHULA55 reputationPosted Apr 3, 2019, 9:57 PM EDT
{
int i;
while ((i = Console.Read()) != 0)
{
Console.WriteLine("{0}={1}", i, (char)i);
}
Console.ReadKey();
}
How to skip 13,10 characters last
GOPIKRISHNA TIRUVEEDHULA55 reputationPosted Apr 3, 2019, 11:06 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Apr 5, 2019, 3:07 AM EDT
Jeeva SubburajRank #720 · 3.3K reputationPosted Apr 5, 2019, 7:40 AM EDT