Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _05._Rectangle_Area
- {
- class Program
- {
- static void Main(string[] args)
- {
- //1. прочетем едната страна -> дължина
- //2. прочетем другата страна -> ширина
- //3. лице на правоъгълника = дължина * ширина
- //4. отпечатваме лицето
- int length = int.Parse(Console.ReadLine());
- int width = int.Parse(Console.ReadLine());
- int area = length * width;
- Console.WriteLine(area);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment