Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Unknown
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Please enter name of town");
- string name = Console.ReadLine();
- Console.WriteLine("Please enter the population");
- int population = int.Parse(Console.ReadLine());
- Console.WriteLine("Please enter the area");
- int area = int.Parse(Console.ReadLine());
- string information = $"Town {name} has population of {population} and area {area} square km";
- Console.WriteLine(information);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement