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