Computer Science, asked by haileyOsmand, 14 hours ago

Write a program in java(Bluej) to accept three integer parameters and print the largest of
these numbers.

Answers

Answered by BHAIFFYT
1

Explanation:

import java.util.Scanner;

public class KboatGreatestNumber

{

public static void main(String args[]) {

Scanner in = new Scanner(System.in);

System.out.print("Enter First Number: ");

int a = in.nextInt();

System.out.print("Enter Second Number: ");

int b = in.nextInt();

System.out.print("Enter Third Number: ");

int c = in.nextInt();

int g = Math.max(a, b);

g = Math.max(g, c);

System.out.println("Greatest Number = " + g);

}

}

Answered by ailanivaishnavi
0

Answer:

(1) Manu runs a tea-stall. He uses 15 ml milk for making 1 cup of tea, then how much milk is needed for making 50 cups of tea?

Similar questions