How could i add to this code in order to make a menu where i press a number and it goes onto the next part
for example:
1 - Browse Auction
2 - List Auction
3 - Listed Auctions
4 - Exit
class Program
{
static void Main(string[] args)
{
string input;
Console.WriteLine("Please enter a username");
input = Console.ReadLine();
if (input == "John")
if (input != "John")
error();
Console.WriteLine("Please enter a password");
input = Console.ReadLine();
if (input == "Smith")
menu();
if (input != "Smith")
error();
Comments
Leave a comment