Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class SimpleCalculation
- {
- static void Main()
- {
- Console.Write("a = "); // при Console.Write изписва само текста въведен в скобите, за да има някакво условие преди въвеждането на Console.ReadLine.
- var a = int.Parse(Console.ReadLine());
- var area = a * a;
- Console.Write("Square = ");
- Console.WriteLine(area);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement