File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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 . 25 f , 0 . 75 f ));
16+ Console .WriteLine (" \n {0}" , MathOperations .Subtract (1 . 25 f , 0 . 75 f ));
17+ Console .WriteLine (" \n {0}" , MathOperations .Multiply (1 . 25 f , 0 . 75 f ));
18+ Console .WriteLine (" \n {0}" , MathOperations .Divide (1 . 25 f , 0 . 75 f ));
19+ Console .WriteLine (" \n {0}" , MathOperations .GetPowerOf (1 . 25 f , 0 . 75 f ));
20+ Console .WriteLine (" \n {0}" , MathOperations .Modulo (1 . 25 f , 0 . 75 f ));
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+ ```
You can’t perform that action at this time.
0 commit comments