#include <stdio.h>
int main()
{
int a;
printf("Enter the number you want to square:\n");
scanf("%d",&a);
if (a<=10)
{printf("The square of the given number is %d", a*a);}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: