Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- double a, b, c, temp;
- scanf("%lf %lf %lf", &a, &b, &c);
- if (a < b)
- {
- temp = a;
- a = b;
- b = temp;
- }
- if (b < c)
- {
- temp = b;
- b = c;
- c = temp;
- }
- if (a < b)
- {
- temp = a;
- a = b;
- b = temp;
- }
- printf("%lf %lf %lf",a,b,c);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement