Skip to content

Commit df477a0

Browse files
authored
Create README.md
1 parent 7cfe04e commit df477a0

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## Math.Basic
2+
### Description
3+
A C# library for performing basic math operations.
4+
5+
### How To Use
6+
```csharp
7+
8+
using Math.Basic;
9+
using System;
10+
11+
public class Program
12+
{
13+
public static void Main(string[] args)
14+
{
15+
Console.WriteLine("\n{0}", MathOperations.Add(1.25f, 0.75f));
16+
Console.WriteLine("\n{0}", MathOperations.Subtract(1.25f, 0.75f));
17+
Console.WriteLine("\n{0}", MathOperations.Multiply(1.25f, 0.75f));
18+
Console.WriteLine("\n{0}", MathOperations.Divide(1.25f, 0.75f));
19+
Console.WriteLine("\n{0}", MathOperations.GetPowerOf(1.25f, 0.75f));
20+
Console.WriteLine("\n{0}", MathOperations.Modulo(1.25f, 0.75f));
21+
22+
// total output
23+
/*
24+
25+
Add() 2
26+
27+
Subtract() 0.5
28+
29+
Multiply() 0.9375
30+
31+
Divide() 1.67
32+
33+
GetPowerOf() 1.18217701
34+
35+
Modulo() 0.5
36+
37+
*/
38+
}
39+
}
40+
41+
```

0 commit comments

Comments
 (0)