Add ly at the end if the string ends with ing. by In this program, we will take a string as input and add ly at the end if the string ends with ing. Take a string as input.Check whether the string ends with ‘ing‘.If yes, then add ‘ly‘ at the end.Print the output. Output : Previous add ‘ing’ at the end of the string Next reverse words in a string