F
F
F582020-05-24 00:28:34
C++ / C#
F58, 2020-05-24 00:28:34

How to remove character from input string in visual studio?

using System;
namespace F58
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            int f = Convert.ToInt32(Console.ReadLine());
            int sqr = (int)Math.Sqrt(f);
            Console.WriteLine(sqr);
        }
    }
}

Let's assume that when I typed into the console, I wrote the wrong number. How can I delete it, provided that I have not yet pressed ENTER.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
2
2CHEVSKII, 2020-05-24
@2chevskii

Press Backspace?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question