diff --git a/first/Program.cs b/first/Program.cs index 08cb789..084414e 100644 --- a/first/Program.cs +++ b/first/Program.cs @@ -9,6 +9,12 @@ Console.WriteLine(a.First); Console.WriteLine(a.Second); + + a.Multiply(2); + + Console.WriteLine(a.First); + Console.WriteLine(a.Second); + Console.WriteLine(a.Value); } } } diff --git a/first/SplitNumber.cs b/first/SplitNumber.cs index 044ff17..b31fd5b 100644 --- a/first/SplitNumber.cs +++ b/first/SplitNumber.cs @@ -29,5 +29,12 @@ namespace first Second = value - First; } } + + public double Multiply(double mul) + { + Value = Value * mul; + + return Value; + } } }