Computer Science, asked by arunkumarns2808, 2 months ago

write a program to print all the letter from word1 that also append in word2​

Answers

Answered by chitransh7nigam
5

Answer:

Use two loops, nested in each other,for example 'for loop' if in Java.

In first loop one by one extract all the characters of first word and check if they are present in any index value of second word using second loop. If yes, print that letter , else 'continue' with the next iteration of first loop.

Similar questions