// // Method // s = a * b * c // class TestMethod2 { public static void main(String[] args) { // call method here int s = multiplication(2, 2, 2); // Math.pow(2,3) System.out.println("s = " + s); int s0 = multiplication(3, 3, 3); // Math.pow(2,3) System.out.println("s0 = " + s0); System.out.println("\n\nDone.\n\n"); } // go here public static int multiplication(int a, int b, int c) { int temp = a*b*c; return temp; } }