Guest User

Untitled

a guest
Oct 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int alpha[] = {1,2,1,3,1,4,1,5,1,6};
  6. int beta[] = {1,2,3,2,1,1,2,3,2,1};
  7. int length = sizeof(alpha) / sizeof(int);
  8. int counter = 0;
  9.  
  10. for(int i=0; i<length; i++) {
  11. if( alpha[i] != beta[i] ) counter++;
  12. }
  13.  
  14. printf("%d", counter);
  15.  
  16. return 0;
  17. }
Add Comment
Please, Sign In to add comment