PA 4
PA 4
Use in one program a while loop and in another program a do while loop.
1
123
12345
1234567
123456789
s1 = "abc"
s2 = "ababc"
Output: true
1
s1 = "a"
s2 = "ababc"
Output: true
s1 = "abc"
s2 = "ababa"
Output: false
Input: 12W1B12W3B24W1B14W
Output: WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW
Example:
Input: WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW
Output: 12W1B12W3B24W1B14W
2
* * * * * *
* *
* *
* *
* *
* * * * * *
3
The numbers contained in your string are
365
12