0
I would like to know why then, when the programme has been implemented, it fails to show Console.WriteLine("nome: {0}", nome);
onscreen?
string endereço, cpf, telefone, nome;
Console.WriteLine("Digite o nome. ");
nome = Console.ReadLine();
Console.WriteLine("Digite o endereço.");
endereço = Console.ReadLine();
Console.WriteLine("Digite o CPF.");
cpf = Console.ReadLine();
Console.WriteLine("Digite o telefone");
telefone = Console.ReadLine();
Console.WriteLine("nome: {0}", nome);
Console.WriteLine("endereço: {0}", endereço);
Console.WriteLine("CPF: {0}", cpf);
Console.WriteLine("telefone: {0}", telefone);
While you are learning you can see a more modern way of doing: https://dotnetfiddle.net/qeOOI2
– Maniero