SOLVED!!! grazie a Schumy e a Lele
codice:package maggioreminore; import java.io.*; import static java.lang.Math.max; /** * * @author filipporezzadore */ public class Maggioreminore { /** * @param args the command line arguments */ public static void main(String[] args) throws Exception { int a; int b; int c; int max = 0 ; int min = 0 ; System.out.println("Ins numbers"); BufferedReader input = new BufferedReader( new InputStreamReader(System.in)); String line = input.readLine(); a = Integer.parseInt(line); line = input.readLine(); b = Integer.parseInt(line); line = input.readLine(); c = Integer.parseInt(line); if (b > a) max = b; if (c > max) max = c; if (b > a) min = a; if (c < min) min = c; System.out.println("Largest of the three numbers is " + max); System.out.println("Smallest of the three numbers is " + min); // TODO code application logic here } }

Rispondi quotando
