Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- int alpha[] = {1,2,1,3,1,4,1,5,1,6};
- int beta[] = {1,2,3,2,1,1,2,3,2,1};
- int length = sizeof(alpha) / sizeof(int);
- int counter = 0;
- for(int i=0; i<length; i++) {
- if( alpha[i] != beta[i] ) counter++;
- }
- printf("%d", counter);
- return 0;
- }
Add Comment
Please, Sign In to add comment