/* squares.c - Computing the squares of successive integers
	       without using multiplication
 */

#include <stdio.h>

int main() {
    int increment = 1;
    int square = 1;
    int k;
    for (k = 1; k <= 10; k++) {
	printf("The square of %3d is %6d\n", k, square);
	increment += 2;
	square += increment;
    }
    return 0;
}
