## CS 1401,
Quiz 6, MW 12-1:20 version

**Date:** Monday, October 7, 2013

**Name** (please type
legibly, ideally in block letters):
______________________________________________________________________
1. Write a main method that asks a user for an integer n and then
computes the sum of the squares of all the integers from 1 to n,
i.e., the sum 1^{2} + 2^{2} + ... + n^{2}.
Trace your method on the example of n = 3; the result should be
1^{2} + 2^{2} + 3^{2} = 1 + 4 + 9 = 14.

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