Академический Документы
Профессиональный Документы
Культура Документы
Write a Java application that inputsthree integers from the user and displays the sum,
average,product, smallest, and largest of the numbers. Use a Scanner objectto get the input
from the user. Use System.out to output theresults. The average should be a floating point
result, and shouldbe displayed with 2 digits after the decimal point.
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated methodstub
int nu1 = 0;
int nu2 = 0;
int nu3 = 0;
int value;;
//Smallest value
if(value < smallest);{
System.out.println("TheSmallest is: " + smallest);
}
//Largest value
if(value > largest);{
System.out.println("TheLargest is: " + largest);
}
}
}