#include void affichage(float x, float y, float z){ printf("%f %f %f\n", x, y ,z); } void lecture( float *a, float *b, float *c){ scanf("%f%f%f",a,b,c); } void permuter (float* a, float* b){ float tmp; tmp = *a; *a = *b; *b = tmp; } void minMax2(float* a, float* b){ if( *b < *a){ permuter(a,b); } } void tri (float* a, float*b, float*c){ minMax2(a,b); minMax2(b,c); minMax2(a,b); } int main(){ float a,b,c; lecture(&a,&b,&c); affichage(a,b,c); tri(&a,&b,&c); affichage(a,b,c); return 0; }