Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char first[] = "5ask*ytr/m";
- char second[] = "a/ym*f5xt";
- char third;
- int i, j;
- int n = sizeof(first) - 1;
- printf("\nПерша послідовність: '%s'\n", first);
- printf("\nДруга послідовність: '%s'\n", second);
- printf("\nЗбіги символів: ");
- for (i =0; i < n; i++)
- {
- for (j = 0; j < n; j++)
- {
- if (first[i] == second[j])
- {
- third = first[i];
- printf("%c", third);
- }
- }
- }
- printf("\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement