#include <stdio.h>

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

int main(void) {  //oppure void main()
    float q,x;
    for(x=0.0; x<=10.0; x=x+0.5) {
        q=quadrato(x);
        printf("%3.2f --> %3.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: