Advertisement
Shtiler

Untitled

Sep 12th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace homework_3
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int num1;
  14. int num2;
  15. Console.WriteLine("Insert The Width of 1 Slope: ");
  16. num1 = int.Parse(Console.ReadLine());
  17. Console.WriteLine("Insert The Length of 1 Slope:");
  18. num2 = int.Parse(Console.ReadLine());
  19. Console.WriteLine("Calculate Area And Perimeter Of a Rectangle");
  20. Console.WriteLine("The Perimeter of The Rectangle is: {0}", (num1 + num2) * 2);
  21. Console.WriteLine("The Area Of The Rectangle Is: {0}", num1 * num2);
  22. Console.ReadLine();
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement