// Programme test2.c // gcc test2.c -lm -o test2c; ./test2c #include #include #include int main() { int B=1,I,C; float R; while (B>0) { printf("Borne:? "); scanf("%i", &B); for (I=1;I<=B;I=I+1) { C=pow(I,2); R=sqrt((float)I); printf("I= %i I^2= %i I^1/2= %f\n",I,C,R); } } printf("Fin du programme test2.c\n"); return 0; }