0% found this document useful (0 votes)
25 views

Using Using Using Using Using Namespace Class Static Void String New String

This C# code defines a class called "directorio" that contains a Main method. The Main method prompts the user to input their name, address, phone number, and city via Console.ReadLine. It then displays the user's inputted name, address, phone number, and city back to the console formatted on a single line separated by colons.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Using Using Using Using Using Namespace Class Static Void String New String

This C# code defines a class called "directorio" that contains a Main method. The Main method prompts the user to input their name, address, phone number, and city via Console.ReadLine. It then displays the user's inputted name, address, phone number, and city back to the console formatted on a single line separated by colons.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

using System;

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp21
{
class directorio
{
static void Main(string[] args)
{
datos d = new datos();

string nombre, direccion, telefono, ciudad;

Console.WriteLine("digite su nombre");
nombre = Console.ReadLine();
Console.WriteLine("digite su direccion");
direccion = Console.ReadLine();
Console.WriteLine("digite su telefono");
telefono = Console.ReadLine();
Console.WriteLine("digite su ciudad");
ciudad = Console.ReadLine();

Console.WriteLine( ("Nombre:") + nombre + ("") + ("Dirección:")+ ("") +


direccion + (" ")+ ("Telefono:")+ (" ") + telefono + (" ") + ("Ciudad:") + ciudad);

Console.ReadKey();

}
}
}

You might also like