#include <stdio.h>
float sqnum();
int main() {
    sqnum();
    return 0;
}

float sqnum(){
    int a;
    float square;
    printf("enter a number to square: ");
    scanf("%d",&a);
    square=a*a;
    printf("\nthe square of %d is %.2f",a,square);
    
}

Embed on website

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