<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import CS99.*;

/**
 * Lab2a
 * Author: Michael Clarkson
 * NetID: mrc26
 * Date: 6/24/00
 */
class Lab2a {
	public static void main(String[] args) {
		int n1, n2, n3;		// numbers to be averaged
		
		// Read the 3 numbers from the console
		System.out.println("Enter three numbers and I'll find their sum, product, and average them.");
		System.out.print("Number 1: ");
		n1 = Console.readInt();
		System.out.print("Number 2: ");
		n2 = Console.readInt();
		System.out.print("Number 3: ");
		n3 = Console.readInt();
		
		// Compute the sum, product, and average
		int sum = n1 + n2 + n3;
		int product = n1 * n2 * n3;
		double average = (n1 + n2 + n3) / 3.0;
		
		// Output the sum, product, and average
		System.out.println("Sum     = " + sum);
		System.out.println("Product = " + product);
		System.out.println("Average = " + average);
	}
}</pre></body></html>