Computer Science, asked by sayanimallick, 1 day ago

draw a flowchart to find out the greatest no from the given three number a, b, c​

Answers

Answered by samarthkrv
0

Answer:

import java.util.*;

public class Main

{

public static void main(String[] args) {

    ArrayList<Integer> list = new ArrayList<Integer>();

    Scanner scanner = new Scanner(System.in);

        for(int i = 0; i < 3; i++)

        {

            System.out.print("Enter  number " + (i+1) + ":");

            int x = scanner.nextInt();

            list.add(x);

        }

        int y = Collections.max(list);

        System.out.println("The largest number is: " + y);

}

}

Explanation:

Similar questions