I've been basically trying to get this problem days but can't get it finished.
I have an user input of integer. Then user enters a string. Let say the inputted string is 'ok, ok, okay'. I need to get the printed output to cut the strings after every , or . Then let's say the inputted integer was 10. So after every line i need 10-ok,(3) = 7 spaces and one \ in the end. How do i do this?
so the output would look like this:
ok, /
ok, /
okay, /
Any help would be appreciated! Thanks in advance!