#include <stdio.h>

int main(void)
{
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);

    int t;
    if(a > b) t = a, a = b, b = t;
    if(b > c) t = b, b = c, c = t;
    if(a > b) t = a, a = b, b = t;

    printf("%d %d %d\n", a, b, c);
    return 0;
}

#include <stdio.h>

int main(void)
{
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);

    if(a > b) { int tmp = a; a = b; b = tmp; }
    if(b > c) { int tmp = b; b = c; c = tmp; }
    if(a > b) { int tmp = a; a = b; b = tmp; }

    printf("%d %d %d\n", a, b, c);
    return 0;
}

Reduce a scope of the temporary variable
Reduce a scope of the temporary variable
