Computer Science, asked by theRockstar5950, 11 months ago

find the maximum of 3 different numbers,how many decision boxes will be drawn in the flowchart

Answers

Answered by jahaan80
0
import java.util.Scanner;
class abc
{
public static void main(String[]args)
{
int x;
int y;
int z;

Scanner obj=new Scanner(System.in);
System.out.println("Enter the first number");
x=obj.nextInt();
System.out.printl n("Enter the second num");
y=obj.nextInt();
System.out.println("Enter the third number");
z=obj.nextInt();
{
if(x>y&&x>z)
System.out.println("first one is greater");
elseif(y>x&&y>z)
System.out.println("second one is greater");
else
System.out.println("third one is greater");
}
}
}
Similar questions