Advertisement
Dianov

Data Types and Variables - Lab (08. Town Info)

Jul 10th, 2021
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 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.             int area = int.Parse(Console.ReadLine());
  12.  
  13.             Console.Write($"Town {town} has population of {population} and area {area} square km.");
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement