Menu
Question Index
...

Write a program to add three numbers.

Input (Integer, Integer, Integer) Output (Integer)
3, 5, 7 15
-15, -12, -34 -61



class AddThreeNumbers
{
    public static void main(String s[])
    {
        System.out.println("Sum of 21, 18 and 4000 is " + sum(21, 18, 4000));

    }


    public static int sum(int a, int b, int c)
    {
        int result = 0;
        return result;
    }

}

Doubts

Problems

Topic: Basic Arithmetic Operators In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App