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