import java.util.*;
import java.lang.*;
import java.io.*;
import java.lang.Math.*;
// The main method must be in a class named "Main".
class Main {
public static void main(String[] args) {
//System.out.println("Hello world!");
/* Scanner scn = new Scanner(System.in);
int a = scn.nextInt();
if (a> 0 && a%2 == 0) {
System.out.println(0);
} else {
System.out.println(1);
}
*/
//------------------------------
/*Scanner scn = new Scanner(System.in);
int a = scn.nextInt();
int b = scn.nextInt();
int c = scn.nextInt();
int d = 180;
if ((a+b+c) == 180) {
System.out.println("1");
} else {
System.out.println("0");
}*/
//-----------------------------
/*Scanner scn = new Scanner(System.in);
int A = scn.nextInt();
if (A>0) {
System.out.println("1");
}
else if (A<0){
System.out.println("-1");
}
else {
System.out.println("0");
}*/
//------------------------------
/*Scanner scn = new Scanner(System.in);
int a = 5;
int n = scn.nextInt();
if (n % a == 0) {
System.out.println("Divisible by 5");
}
else {
System.out.println("Not divisible by 5");
}*/
// ------------------------------
/* Scanner scn = new Scanner(System.in);
int N = scn.nextInt();
if (N > 18 ) {
System.out.println("N is Greater than 18");
}
if (N < 18 ){
System.out.println("N is smaller than 18");
}
if (N == 18){
System.out.println("N is equal to 18");
} */
/* Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int n1 = scn.nextInt();
if (n > n1) {
System.out.println(n);
}
if (n1 > n) {
System.out.println(n1);
}*/
/*Scanner scn = new Scanner(System.in);
String name = scn.nextLine();
int yos = scn.nextInt();
if (yos>5) {
System.out.println("Yes " + name + " will receive bonus.");
}
else if (yos<5) {
System.out.println("No " + name + " will not receive bonus.");
}
else {
System.out.println("");
}*/
/* float a = 7.3f;
if(a == 7.3f)
System.out.print("Hi");
else
System.out.print("Know Program");*/
/* //------------------------------
/*Given temperature of person, analyse the situation of person and give him advice.
Situations and advice related with temperature are :
1. temp is in range of [85.0 to 91.0] then advice is "Serious Hypothermia".
2. temp is in range of (91.0 to 95.0) then advice is "Mild Hypothermia".
3. temp is in range of [95.0 to 98.0] then advice is "Normal Temperature".
4. temp if in range of (98.0 to 100.0] then advice is "Mild Fever".
5. temp if in range of (100.0 to 105.0] then advice is "High Fever".
//------------------------------
Scanner scn = new Scanner(System.in);
double T_in = scn.nextDouble();
double Temp = T_in;
if (Temp >=85.0 && Temp <=105.0) {
System.out.print("Correct Input Value Entered.");
System.out.println("");
System.out.println("Below are the findings results: ");
}
if (Temp>=85.0 && Temp<=91.0) {
System.out.print(Temp +
" is Serious Hypothermia");
}
else if (Temp>=91.0 && Temp<95.0) {
System.out.println(
"Mild Hypothermia");
}
else if (Temp>=95.0 && Temp<=98.0) {
System.out.println(
"Normal Temperature");
}
else if (Temp>98.0 && Temp<=100.00) {
System.out.println(
"Mild Fever");
}
else if (Temp>100.0 && Temp<=105.00) {
System.out.println(
"High Fever");
}
else //(Temp <85.00 || Temp >105.00)
{
System.out.println("Incorrect Input Value");
System.out.println("Input Temperature is beyond human body to sustain life or remain alive");
}*/
// Scanner scn = new Scanner(System.in);
// int a = scn.nextInt();
// int b = scn.nextInt();
// int c = scn.nextInt();
// if (a>=b & b>=c) {
// System.out.println(a);
// if (b>=a & a>=c) {
// System.out.println(b);
// }
// else if (c>=b & c>=a) {
// System.out.println(b);
// }
// }
// else {
// System.out.println(c);
// }
/*
Scanner scn = new Scanner(System.in);
int a = scn.nextInt();
int b = scn.nextInt();
int c = scn.nextInt();
int num =0;
int num1 =1000000000;
boolean d = (num >+0 && num1<=1000000000);
int e = (int)d;
if (a<=e && b<=e & c<=e) {
if (a>=b && a>=c && b!=c) {
System.out.println(a);
}
else if (b>=a && b>=c && a!=c) {
System.out.println(b);
}
}
else System.out.println(c);*/
Scanner scn = new Scanner(System.in);
System.out.println("Please input 3 integers: ");
int x = scn.nextInt();
int y = scn.nextInt();
int z = scn.nextInt();
int b = scn.nextInt();
int max = Math.max(Math.max(b,Math.max(x,y)), z);
System.out.println(x + " " + y + " "+z);
System.out.println("The max of three is: " + max);
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: