#include #include // déclaration de la fonction decore() : */ void decore ( void ) ; int main(void) { float x , y , z ; x = (rand()%20)/5.0 ; y = ((rand()%30)-15)/8.0 ; z = ((rand()%10)-5)/7.0 ; decore(); printf("x = %f\n",x); decore(); printf("y = %f\n",y); decore(); printf("z = %f\n",z); decore(); system("pause"); return 0 ; } /* définition de la fonction decore */ void decore ( void ) { int i = 0 ; printf("#"); while ( i < 20 ) { printf("*"); i = i + 1 ; } printf("#\n"); }