1.
Develop a console application that prompts the user to enter various values like Name,
Age, and City. Once the user inputs the data, display it back on the console.
using System;
class Program
static void Main()
// Get Name
[Link]("Enter your name: ");
string name = [Link]();
// Get Age (no validation)
[Link]("Enter your age: ");
int age = Convert.ToInt32([Link]());
// Get City
[Link]("Enter your city: ");
string city = [Link]();
// Display the information
[Link]("\n--- User Information ---");
[Link]("Name: " + name);
[Link]("Age: " + age);
[Link]("City: " + city);
[Link]("\nPress any key to exit...");
[Link]();
}