Good people, how are you? , I'm new to programming and I have a doubt
Console.WriteLine("Ingresar un tipo");
int unTipo = Convert.ToInt32(Console.ReadLine());
if (unTipo == 1)
{
}
As you can see in the code, it is a console test in C # and what it asks is to enter a number and that the variable, according to the number entered that variable would have to take a value String
, How can I do that?
Thank you very much