خرید بک لینک

Vote count: 0

I'm mostly new to C# and I've been writing code to practice.

I've written some code where you enter a line of text, or a "login key", and I want to make it where you can confirm that login key.

Here's the code I've done so far, I will use "//" on the part I'm stuck on. (Wont include any uecessary code.)

    Console.WriteLine("Please enter a login key.");

    string Key = Console.ReadLine();

    Console.WriteLine("You entered, " + Key + " as your login key!");

    Console.WriteLine("Are you sure you want to choose this as your login key? "); // This is where I'm stuck at, got no idea how to do a yes/no prompt.
}

Any help would be greatly appreciated.

asked 26 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 1 خرداد 1395 ساعت: 12:28

صفحه بندی