Menu
Question Index
...

Write a program to get the maximum value of 3 numbers.



class FindMaxNumber
{
    public static void main(String s[])
    {
        System.out.println("The maximum number in 3, 7 and 10 is " + maximum(3, 7, 10));

    }


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

}

Doubts

Problems

Topic: Ternary Operator 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