Advertisement
Kuncavia

SquareArea

Aug 17th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using System;
  2.  
  3. class SimpleCalculation
  4. {
  5.     static void Main()
  6.     {
  7.         Console.Write("a = "); // при Console.Write изписва само текста въведен в скобите, за да има някакво условие преди въвеждането на Console.ReadLine.
  8.         var a = int.Parse(Console.ReadLine());
  9.         var area = a * a;
  10.         Console.Write("Square = ");
  11.         Console.WriteLine(area);
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement