Esempio n. 1
0
    public static void Main(String[] args)
    {
        GFG ob   = new GFG();
        int sum1 = ob.Add(4, 5);

        Console.WriteLine("Sum of the two integer values: " + sum1);
        int sum2 = ob.Add(4, 5, 6);

        Console.WriteLine("Sum of the three interger values: " + sum2);
    }
Esempio n. 2
0
    // Main Method
    public static void Main(String[] args)
    {
        // Creating Object
        GFG ob = new GFG();

        int sum2 = ob.Add(1, 2, 3);

        Console.WriteLine("sum of the three " + "integer value : " + sum2);

        double sum3 = ob.Add(1.0, 2.0, 3.0);

        Console.WriteLine("sum of the three " + "double value : " + sum3);
    }
Esempio n. 3
0
    // Main Method
    public static void Main(String[] args)
    {
        // Creating Object
        GFG ob = new GFG();

        int sum1 = ob.Add(1, 2);

        Console.WriteLine("sum of the two " + "integer value : " + sum1);


        int sum2 = ob.Add(1, 2, 3);

        Console.WriteLine("sum of the three " + "integer value : " + sum2);
    }