int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int max = a; if( b > max ) { max=b; } if( c > max ) { max=c; } System.out.printf( "maximum z čísel %d, %d, %d je %d%n", a, b, c, max );