#include <stdio.h>
int main() {
int a, b, c;
printf("Digite 3 numeros:\n"); scanf("%d %d %d", &a
, &b
, &c
); if (a > c) {
int tmp = c;
c = a;
a = tmp;
}
if (a > b) {
int tmp = b;
b = a;
a = tmp;
}
if (b > c) {
int tmp = c;
c = b;
b = tmp;
}
}
//https://pt.stackoverflow.com/q/190931/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKCWludCBhLCBiLCBjOwoJcHJpbnRmKCJEaWdpdGUgMyBudW1lcm9zOlxuIik7CglzY2FuZigiJWQgJWQgJWQiLCAmYSwgJmIsICZjKTsKCWlmIChhID4gYykgewoJCWludCB0bXAgPSBjOwoJCWMgPSBhOwoJCWEgPSB0bXA7Cgl9CglpZiAoYSA+IGIpIHsKCQlpbnQgdG1wID0gYjsKCQliID0gYTsKCQlhID0gdG1wOwoJfQoJaWYgKGIgPiBjKSB7CgkJaW50IHRtcCA9IGM7CgkJYyA9IGI7CgkJYiA9IHRtcDsKCX0KICAgIHByaW50ZigiJWQgJWQgJWQiLCBhLCBiLCBjKTsKfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMTkwOTMxLzEwMQ==