HELP!I NEED TO MAKE A YES OR NO SYSTEM

Updated on December 30, 2018 in [A] C# .Net
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on December 26, 2018

I want to make a yes or no system,but it won’t work.Where did I go Wrong?

string decision;
Console.WriteLine(“Do you want to continue?Type yes or no”);
decision = Console.ReadLine();
if (decision == yes)
{
goto start;
}
else if (decision == no) { }

  • Liked by
Reply
0 on December 30, 2018

Use Console.Write instead of Console.WriteLine. That should fix it.

  • Liked by
Reply
Cancel