salut a tous !
notre prof nous a demande de fr un prog avc une comparaison de 4 variable en utilisant MAX()..... c pa pratique du tt
voila ce ke j ai ecris
#define MAX1(tps,tps2) ((tps)>(tps2) ? (tps) : (tps2);
#define MAX2(tps3,tps4) ((tps3)>tps4) ? (tps3)
tps4);
#define MAX(MAX1,MAX2) ((MAX1(tps,tps2))>(MAX2(tps3,tps4)) ? (MAX1(tps,tps2)) : (MAX2(tps3,tps4));
maxi= MAX(MAX1(tps,tps2),MAX2(tps3,tps4)) ;
printf("temps max de reaction%f.2h ",maxi);
en fait je c pa trop comment fair pr pouvoir sortir le max d un max ....
si qqn a une soltion merci d avance !!
Partager