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