Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _2D_Rectangle_Area
- {
- class Program
- {
- static void Main(string[] args)
- {
- var x1 = double.Parse(Console.ReadLine());
- var y1 = double.Parse(Console.ReadLine());
- var area = x1 * y1;
- var x2 = double.Parse(Console.ReadLine());
- var y2 = double.Parse(Console.ReadLine());
- var perimeter = 2 * (x2 + y2);
- Console.WriteLine(area);
- Console.WriteLine(perimeter);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement