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

13 lines
532 B
C#
Raw Normal View History

2023-04-12 14:51:12 +00:00
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);
}