fork download
  1. # include <stdio.h>
  2.  
  3. int main(){
  4. int data[]={10,15,8,20,7};
  5. int min;
  6. int counter;
  7. counter=0;
  8. min=data[0];
  9. do{
  10. counter=counter+1;
  11. if(min>data[counter]){
  12. min=data[counter];
  13. }
  14. }while(counter<4);
  15. printf("%d",min);
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
7