Advertisement
Shtiler

Untitled

Sep 11th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 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: ");
  16. num1 = int.Parse(Console.ReadLine());
  17. Console.WriteLine("Insert The Length:");
  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:"+ num1 + num2);
  21. Console.WriteLine("The Area Of The Rectangle Is:"+ num1 * num2);
  22. Console.ReadLine();
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement