10127 - Square in Grid
Square in Grid
Time Limit: 1 sec
The Problem
In this problem, you will be given one integer number n as input. Write a simple program that print the number of equal small square in n x n grid.
In this picture the number of equal small square are 9 in 3 x 3 grid.
The Input
There are several lines of input in the input file. Each line contains one integer numbers n (0<n<100). Input is terminated by EOF.
The Output
For each line of input you have to print a line of output, this line contains an integer which is the number of small equal square in nx n grid.
Sample Input
1
3
6
Sample Output
1
9
36
[Outsbook Round #1 Online Contest]
Problem Setter: Shahin ShamS