I'm new to this site, and I heard that I can get help from here with learning programming. I am having trouble with sentence strings. If someone inputs a sentence followed by just a single character, I want the program to only write the sentence until that character is first shown.
input The cow jumped over the moon.
output The cow jum
C-strings are my weakness i guess, but if someone can help me out, I would appreciate it.