Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- float Min(float a,float b);
- float Max(float a,float b);
- int main()
- {
- float a,b,min,max;
- printf("Entrez Deux nombres :");
- scanf("%f %f",&a,&b);
- min=Min(a,b);
- max=Max(a,b);
- printf("le maximum est : %.2f \nle minimum est : %.2f",max,min);
- system("pause");
- return 0;
- }
- float Min(float a,float b)
- {
- float res;
- if(a<b) res=a;
- else if(b<a) res=b;
- return res;
- }
- float Max(float a,float b)
- {
- float res;
- if(a<b) res=b;
- else if(b<a) res=a;
- return res;
- }
Advertisement
Add Comment
Please, Sign In to add comment