Write a program that displays the square of numbers between 0 and 20.


Difficulty level
This exercise is mostly suitable for students
#include <stdio.h>
#include <conio.h>

void main()
{
	int I;
	for (I = 0; I <= 20; I++)
		printf("The square of %d is %d \n", I, I*I);

	getch();
}

Back to the list of exercises
Looking for a more challenging exercise, try this one !!
Divisibility by 9