English, asked by mbhanwariya1994, 8 months ago

WAP to check maximum of three numbers.Also write an algorithm​

Answers

Answered by khushi1558
0

Answer:

import java.util.*;

class max

{

public static void main (string args[])

{

Scanner in =new Scanner(System.in);

int a,b,c,x,y;

System.out.println("Enter three numbers");

a=in.nextInt();

b=in.nextInt();

c=in.nextInt();

x=Math.max(a,b);

y=Math.max(c,x);

System.out.println("Greatest number="+y);

}

}

.

.

.

*Hope it will help you*

Similar questions