TWO STRING -L JOINT | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

TWO STRING -L JOINT

Given two string S1 and S2 where the last letter of one of the strings is same as the first letter of the other string print the out put as given input/output section intput format: the first line contains S1. the second line contain S2. output format; L lines contain the desired output where L is the length of the string whose last letter is same as the first letter of the other string. Boundary containings: 2<length of S1 and S2<100 Example input/output 1: input: elephant tiger output: e**** l**** e**** p**** h**** a**** n**** tiger

18th Feb 2018, 8:24 AM
balaji.g
balaji.g - avatar
1 Answer
+ 2
This is what I came up with: https://code.sololearn.com/cFswD1pReael/#cpp I'm still somewhat confused by the instructions but I think I got the gist of it.
6th Jul 2018, 5:15 AM
Louie
Louie  - avatar