c++ program to input and print text using Dynamic Memory Allocation.loop

C++
program to input and print text using Dynamic Memory Allocation.
Source

Also in C++: