diff --git a/ClassDemo1/Program.cs b/ClassDemo1/Program.cs index 6c1c2f7..c2eb53b 100644 --- a/ClassDemo1/Program.cs +++ b/ClassDemo1/Program.cs @@ -18,14 +18,15 @@ namespace ClassDemo1 SkrivUtVersjonTo(tall); SkrivUtVersjonTre(tall); - SumMyBitchUp(420, 69); + int sum = SumMyBitchUp(420, 69); + Write($"Sum: {sum}"); Console.ReadLine(); } - static void SumMyBitchUp(int first, int second) + static int SumMyBitchUp(int first, int second) { - Write($"Her er summen på {first} + {second} = {first + second}"); + return first + second; } ///