#include <stdio.h>
int quadrato(float x) {
float q;
q = x*x;
return q;
}
int main(void) { //oppure void main()
float x,q;
for(x=0.0;x<=10.0;x=x+0.5) {
q=quadrato(x);
printf("%3.2f --> %3.2f\n",x,q);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: