fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int numbers[8] = {3, -10, 6, 0, 2, -1, 8, 5};
  5. int second, count, i, j;
  6. for(i=0;i<8;i++){
  7. second=numbers[i];
  8. count=0;
  9. for(j=0;j<8;j++){
  10. if(second<numbers[j]){
  11. count=count+1;}}
  12. if(count==1)
  13. break;}
  14. printf("%d",second);
  15. return 0;
  16. }
  17.  
  18.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
6