// Parameter passing demonstration 	
	
public class Demo {	
	// add(): returns the sum of its parameters 	
	public static double add(double x, double y) {	
		double result = x + y;	
		return result;	
	}	
	
	// multiply(): returns the product of its parameters 	
	public static double multiply(double x, double y) {	
		x = x * y;	
		return x;	
	}	
	
	// main(): application entry point	
	public static void main(String[] args) {	
		System.out.println();	
		double a = 8;	
		double b = 11;	
		double sum;	
		double product;	
	
		sum = add(a, b);	
		System.out.println(a + " + " + b + " = " + sum);	
	
		product = multiply(a, b);	
		System.out.println(a + " * " + b + " = " + product);	
	}	
}	
