CS 1401, Quiz 6, TR class section

Date: Tuesday, October 7, 2014
Name (please type legibly, ideally in block letters): ______________________________________________________________________

1. Write the main method for computing the product of all integers from m to n, i.e., the product m * (m + 1) * ... * n. This methods should ask the user for integers m and n and compute the desired product. Trace your method on the example of m = 3 and n = 5, the result should be 3 * 4 * 5 = 60.

import java.util.Scanner;

public class Quiz6{
  public static void main(String[] args){
    Scanner reader = new Scanner(System.in);