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