PR1 Done
This commit is contained in:
18
PR1/ConsoleApp1/Calculator.cs
Normal file
18
PR1/ConsoleApp1/Calculator.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ConsoleApp1
|
||||
{
|
||||
public class Calculator
|
||||
{
|
||||
public double Addiction(double x, double y) => x + y;
|
||||
public double Subtraction(double x, double y) => x - y;
|
||||
public double Multipliction(double x, double y) => x * y;
|
||||
public double Division(double x, double y) => x / y;
|
||||
public long Multipliction(long x, long y) => x * y;
|
||||
public long Addiction(long x, long y) => x + y;
|
||||
}
|
||||
}
|
||||
@@ -43,6 +43,7 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Calculator.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user