Advertisement
NAHID_GTC

Untitled

Jan 22nd, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int ara[] = {1,2,3,4,5};
  5. int i, count = 0;
  6. for(i = 0; i < ara[i]; i++) {
  7. count++;
  8. }
  9. printf("%d\n", count);
  10. return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement