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 h = a + b + c;
		int j = a * b * c;
		double p = h / 3.0;
		System.out.printf("%d %d %.2f",h,j,p);
	}
}

Double click to view unformatted code.


Back to problem 47