loading
main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;

class MainClass {
  public static void Main (string[] args) {
    
    Calculator calc = new Calculator();

    int r1 = calc.add(5, 4);

    int r2 = calc.add(7,8,20);

    Console.WriteLine(r1);

    Console.WriteLine(r2);

  }
}

public class Calculator
{
  public int add(int a, int b)
  {
    return a + b;
  }

  public int add(int a, int b, int c)
  {
    return a + b + c;
  }
}