fork download
  1. #include <stdio.h>
  2.  
  3. min(int value1, int value2, int value3,int value4){
  4. int min = ((value1 < value2) & (value1<value3) & (value1<value4)) ? value1 : ((value2<value3) &(value2<value4))? value2: (value3<value4)?value3: value4;
  5. return min;
  6.  
  7. }
  8.  
  9. int main(void) {
  10. int retVal=min(1,2,3,4);
  11. printf("Min: %i\n", min);
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Min: 1364783472