int a = 10, b = 20, c;

if (a < b) {
    c = a;
}
else {
    c = b;
}

printf("%d", c);
int a = 10, b = 20, c;

c = (a < b) ? a : b;

printf("%d", c);