#include #include // déclaration de la fonction decore3() : */ void decore3 ( int , char ) ; int main(void) { float x , y , z ; int ncar=10 ; char car = '+' ; x = (rand()%20)/5.0 ; y = ((rand()%30)-15)/8.0 ; z = ((rand()%10)-5)/7.0 ; decore3( ncar , car ); printf("x = %f\n",x); decore3( 7 , 'X' ); printf("y = %f\n",y); decore3( 2* ncar , 0x41 ); printf("z = %f\n",z); decore3( 3 , '!' + 1 ); system("pause"); return 0 ; } /* définition de la fonction decore3 */ void decore3 ( int n , char c ) { int i = 0 ; printf("#"); while ( i < n ) { printf( "%c", c ); i = i + 1 ; } printf("#\n"); }