1.

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

Answer»

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");elseSystem.out.println("third one is greater"); } }}



Discussion

No Comment Found