#include <stdio.h>

int quadrato(float x) {
    float q;
    q=x*x;
    return q;
}

int main() {
    float q,x;
    for(x=0.0; x<=10.0; x=x+0.5) {
        q=quadrato(x);
        printf("%5.2f --> %6.2f\n", x,q);
    }
}

Embed on website

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