fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int a[10]={3,2,5,7,8},n=5,b=0,i;
  5. for(i=0;i<n;i++)
  6. {
  7. if(a[i]==n)
  8. {
  9. b=1;
  10. printf("yes");
  11. break;
  12. }
  13. }
  14. if(b==0)
  15. {
  16. printf("no");
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0s 4540KB
stdin
1 2 3 4 5
123456
stdout
yes