Menu
Question Index
...

Write a program to get the average of three numbers;



class ThreeNumbersAverage
{
    public static void main(String s[])
    {
        System.out.println("Average of 15, 70 and 27 is " + average(15, 70, 27));

    }


    public static int average(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