Confusion with code


this is my code for the problem. I understand everything and I’m able to get the output except I do not know how to remove ", " for the last sting i print.

hello @amanb25
store all ur output strings in vector/ array and then u can handle the comma easily .