From 425ea1987c2d04c733ea3c64ee0204315f4558d1 Mon Sep 17 00:00:00 2001 From: Debug_pro Date: Thu, 29 Jan 2026 20:13:57 +0300 Subject: [PATCH] forgot first::SplitNumber.Multiply.. --- first/Program.cs | 6 ++++++ first/SplitNumber.cs | 7 +++++++ 2 files changed, 13 insertions(+) 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; + } } }