#include <stdio.h>
int main() 
{
    int number,square;
    printf("Enter the number:\n");
    scanf("%d",&number);
    printf("number=%d\n",number);
    if(number<10)
    {
        printf("Square of the number=%d\n",square=number*number);
    }
    else
    {
        printf("The number is greater than 10\nsquare=not posible\n");
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: