InterviewSolution
| 1. |
write a program to copy and print the words which have atleast a pair is consecutive letters in a sentence strings |
|
Answer» tion:Answer:The idea is to traverse string from left to right. For every traversed character, print it in a line if it is consecutive to previous one, else print a new line character.// C++ program to print consecutive characters// TOGETHER in a line.#include |
|