#include <stdio.h>
int main(void)
{
int value1 = 12; //declare value1
int value2 = 15; //declare value2
int value3 = 10; //declare value3
int value4 = 5; //declare value4
int min4 = ((value1 < value2) && (value1 < value3) && (value1 < value4)) ? value1 : // value1 is the smallest
((value2 < value1) && (value2 < value3) && (value2 < value4)) ? value2 : // value2 is smallest
((value3 < value1) && (value3 < value2) && (value3 < value4)) ? value3 : // value3 is smallest
value4; // otherwise value4 is smallest
int LowValue = min4;
printf("The smallest int value of the 4 is : %d", LowValue
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSAKewoJaW50IHZhbHVlMSA9IDEyOwkvL2RlY2xhcmUgdmFsdWUxCglpbnQgdmFsdWUyID0gMTU7CS8vZGVjbGFyZSB2YWx1ZTIKCWludCB2YWx1ZTMgPSAxMDsJLy9kZWNsYXJlIHZhbHVlMwoJaW50IHZhbHVlNCA9IDU7CQkvL2RlY2xhcmUgdmFsdWU0CgoKCmludCBtaW40ID0gKCh2YWx1ZTEgPCB2YWx1ZTIpICYmICh2YWx1ZTEgPCB2YWx1ZTMpICYmICh2YWx1ZTEgPCB2YWx1ZTQpKSA/IHZhbHVlMSA6IC8vIHZhbHVlMSBpcyB0aGUgc21hbGxlc3QKICAgICAgICAgICAoKHZhbHVlMiA8IHZhbHVlMSkgJiYgKHZhbHVlMiA8IHZhbHVlMykgJiYgKHZhbHVlMiA8IHZhbHVlNCkpID8gdmFsdWUyIDogLy8gdmFsdWUyIGlzIHNtYWxsZXN0CiAgICAgICAgICAgKCh2YWx1ZTMgPCB2YWx1ZTEpICYmICh2YWx1ZTMgPCB2YWx1ZTIpICYmICh2YWx1ZTMgPCB2YWx1ZTQpKSA/IHZhbHVlMyA6IC8vIHZhbHVlMyBpcyBzbWFsbGVzdAogICAgICAgICAgICB2YWx1ZTQ7ICAvLyBvdGhlcndpc2UgdmFsdWU0IGlzIHNtYWxsZXN0CiAgICAgICAgICAgIAogICAgICAgICAgICBpbnQgTG93VmFsdWUgPSBtaW40OwoKCglwcmludGYoIlRoZSBzbWFsbGVzdCBpbnQgdmFsdWUgb2YgdGhlIDQgaXMgOiAlZCIsIExvd1ZhbHVlKTsKCQoJcmV0dXJuIDA7Cn0K