Computer Science, asked by moidabdul312, 5 months ago

write a java program to check and display the greatest number among given four number​

Answers

Answered by subhasoumesh289
2

Explanation:

public class greater 1

{

public static void main(int n1, int n2, int n3, int n4)

{

int m1,m2,m3;

m1= Math.max(n1,n2);

m2= Math.max(m1,n3);

m3= Math.max(m2,n4);

System.out.println("Greatest number:"+m3);

}

}

HOPE IT HELPED U BRO

Answered by jp5876416
0

1,2,3,4,5,6,7,8,9,10,11,12

Similar questions