#include <stdio.h>

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

void main() {
    float a,b;
    for(a=0.0; a<=10.0; a=a+0.5) {
        b=elevazione_al_cubo(a);
        printf("%.2f --> %.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: