I'm having a small bit of trouble with this line of code:
/*the first
three lines
had info abt the website*/
using System;
public class HelloWorld
{
public static void Main(string[] args)
{
string name = Console.ReadLine();
if (name = "John");
{Console.WriteLine("Hello")...
I want to delete a user input if a condition is not met, and keep the Console interface same and intact without using Console.Clear() or goto menu;
I want to delete whatever was entered by the user if a condition is not met. How can I do that?
If I use Console.Clear() or goto menu; the same...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.