diff --git a/Emne 3/ConsoleApp3/ConsoleApp3/Program.cs b/Emne 3/ConsoleApp3/ConsoleApp3/Program.cs index 85551be..78d2954 100644 --- a/Emne 3/ConsoleApp3/ConsoleApp3/Program.cs +++ b/Emne 3/ConsoleApp3/ConsoleApp3/Program.cs @@ -3,11 +3,27 @@ internal class Program { static void Main(string[] args) - { - int a = 3; - decimal b = 5; - decimal sum = a + b; - Console.WriteLine(sum); + { + Run(); + } + + public static decimal sum() + { + int a = 3; + decimal b = 5; + decimal sum = a + b; + return sum; + + } + private static decimal Sum(decimal a, decimal b) + { + return a + b; + } + + public static void Run() + { + Console.WriteLine(sum()); + Console.WriteLine(Sum(3,5)); } } } \ No newline at end of file