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 homework_3
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num1;
- int num2;
- Console.WriteLine("Insert The Width of 1 Slope: ");
- num1 = int.Parse(Console.ReadLine());
- Console.WriteLine("Insert The Length of 1 Slope:");
- num2 = int.Parse(Console.ReadLine());
- Console.WriteLine("Calculate Area And Perimeter Of a Rectangle");
- Console.WriteLine("The Perimeter of The Rectangle is: {0}", (num1 + num2) * 2);
- Console.WriteLine("The Area Of The Rectangle Is: {0}", num1 * num2);
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement