import java.util.Scanner; public class Main { public static void main(String[] args) { int a,b,c; Scanner sc = new Scanner(System.in); a = sc.nextInt(); b = sc.nextInt(); c = sc.nextInt(); int d=a+b+c; int e=a*b*c; double f=d/3.0; System.out.println(String.format("%d %d %.2f",d,e,f)); } } |
Double click to view unformatted code.