Teo_Yanchev

Methods - CalculateRectangleArea - C# Fundamentals

Sep 10th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _6.CalculateRectangleArea
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. double a = double.Parse(Console.ReadLine());
  10. double b = double.Parse(Console.ReadLine());
  11.  
  12. double result = RectangleArea(a, b);
  13.  
  14. Console.WriteLine(result);
  15. }
  16.  
  17. static double RectangleArea(double a, double b)
  18. {
  19. double result = a * b;
  20. return result;
  21. }
  22. }
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment