View Code of Problem 47


import java.util.Scanner;


public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
        int sum=a+b+c;
        int mu=a*b*c;
        double avg=sum/3;
        System.out.println(sum+" "+mu+" "+String.format("%.2f",avg));
    }
}

Double click to view unformatted code.


Back to problem 47