desislava_topuzakova

5. Лице на правоъгълник

Nov 14th, 2021
855
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _05._Rectangle_Area
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             //1. прочетем едната страна -> дължина
  10.             //2. прочетем другата страна -> ширина
  11.             //3. лице на правоъгълника = дължина * ширина
  12.             //4. отпечатваме лицето
  13.             int length = int.Parse(Console.ReadLine());
  14.             int width = int.Parse(Console.ReadLine());
  15.             int area = length * width;
  16.             Console.WriteLine(area);
  17.  
  18.         }
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment