Advertisement
NedyalkoKikov

RectanlgeArea

May 5th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 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 RectangleArea
  8. {
  9. class RectanlgeArea
  10. {
  11. static void Main()
  12. {
  13. double width = double.Parse(Console.ReadLine());
  14. double height = double.Parse(Console.ReadLine());
  15. GetRectanlgeArea(width, height);
  16. }
  17. public static double GetRectanlgeArea(double width,double height)
  18. {
  19. double area = width * height;
  20. Console.WriteLine("Area is {0}",area);
  21. return area;
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement