This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2023_Stanislav_Mykhailenko/Lesson_6/Task_1/Classes/Operation.cs
Stanislav Mykhailenko 09ec4d3cbd
Add Lesson 6 Task 1
2023-04-12 17:51:12 +03:00

12 lines
532 B
C#

namespace Lesson6.Classes;
using Lesson6.Interfaces;
public class Operation : IOperation
{
public double Add(double firstSummand, double secondSummand) => firstSummand + secondSummand;
public double Subtract(double minuend, double subtrahend) => minuend - subtrahend;
public double Multiply(double firstFactor, double secondFactor) => firstFactor * secondFactor;
public double Divide(double dividend, double divisor) => dividend / divisor;
public delegate double Do(double firstNumber, double secondNumber);
}