Advertisement
Spocoman

08. Town Info

Jan 16th, 2022
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. using System;
  2.  
  3. namespace TownInfo
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string town = Console.ReadLine();
  10.             int population = int.Parse(Console.ReadLine());
  11.             double area = double.Parse(Console.ReadLine());
  12.  
  13.             Console.WriteLine($"Town {town} has population of {population} and area {area} square km.");
  14.          // Console.WriteLine("Town " + town + " has population of " + population + " and area " + area + " square km.");
  15.         }
  16.     }
  17. }
  18.  
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement