4. Assignment 8
WAP to squeeze the character in s1 that matches any
character in the string s2
5. Assignment 8
WAP to squeeze the character in s1 that matches any
character in the string s2
Input:
6. Assignment 8
WAP to squeeze the character in s1 that matches any
character in the string s2
Input: Read two Strings.
7. Assignment 8
WAP to squeeze the character in s1 that matches any
character in the string s2
Input: Read two Strings.
Output:
8. Assignment 8
WAP to squeeze the character in s1 that matches any
character in the string s2
Input: Read two Strings.
Output: Print string1 after removing the characters that
matches with string2.
10. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
D e s R t c h e 0
Output: str1
after
squeezing
11. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e n n i s R i t c h i e 0
12. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e n n i s R i t c h i e 0
13. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e n n i s R i t c h i e 0
14. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e n i s R i t c h i e 0
15. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e n i s R i t c h i e 0
16. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e i s R i t c h i e 0
17. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R i t c h i e 0
18. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R i t c h i e 0
19. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R i t c h i e 0
20. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R i t c h i e 0
21. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R i t c h i e 0
22. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h i e 0
23. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h i e 0
24. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h i e 0
25. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h i e 0
26. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h i e 0
27. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h e 0
28. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h e 0
29. Assignment 8
Example’s:
Input: str1: Dennis Ritchie and str2: Linux
Output: str1: Des Rtche
D e n n i s R i t c h i e 0
Input: str 1
L i n u x 0
Input: str 2
Output: str1
after
squeezing
D e s R t c h e 0
30. Assignment 8
Example’s:
Input: str1: Welcome and str2: Emertxe
Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o 0
31. Assignment 8
Example’s:
Input: str1: Welcome and str2: Emertxe
Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W e l c o m e 0
32. Assignment 8
Example’s:
Input: str1: Welcome and str2: Emertxe
Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W e l c o m e 0
33. Assignment 8
Example’s:
Input: str1: Welcome and str2: Emertxe
Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o m e 0
34. Assignment 8
Example’s:
Input: str1: Welcome and str2: Emertxe
Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o m e 0
35. Assignment 8
Example’s:
Input: str1: Welcome and str2: Emertxe
Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o m e 0
36. Assignment 8
Example’s:
Input: str1: Welcome and str2: Emertxe
Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o m e 0
37. Assignment 8
Example’s:
Input: str1: Welcome and str2: Emertxe
Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o m e 0
38. Assignment 8
Example’s:
Input: str1: Welcome and str2: Emertxe
Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o e 0
39. Assignment 8
Example’s:
Input: str1: Welcome and str2: Emertxe
Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o e 0
40. Assignment 8
Example’s:
Input: str1: Welcome and str2: Emertxe
Output: str1: Wlco
W e l c o m e 0
Input: str 1
E m e r t x e 0
Input: str 2
Output: str1
after
squeezing
W l c o 0