Print the given string 3 times by In this program, we will take a string as input and print a string 3 times. Steps to remove the program Take a string as input.Print the given string 3 times using ‘*‘. Output : Previous repeated characters in a string and replace it with a single letter Next print each character on a new line