desislava_topuzakova

1. Пресмятане на лице на квадрат

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