#include <stdio.h>

int elevazione_al_quadrato(float a) {
    float b;
    b=a*a;
    return b;
}

void main() {
    float a,b;
    for(a=0.0; a<=15.0; a=a+0.5) {
        b=elevazione_al_quadrato(a);
        printf("%5.2f --> %6.2f\n", a,b);
    }
}

Embed on website

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