RosettaCodeData/Task/Determine-sentence-type/00-TASK.txt
2024-10-16 18:07:41 -07:00

18 lines
525 B
Text

Use these sentences:
"hi there, how are you today? I'd like to present to you the washing machine 9001. You have been nominated to win one of these! Just make sure you don't break it”
;Task
: Search for the last used punctuation in a sentence, and determine its type according to its punctuation.
; Output one of these letters: "E" (Exclamation!), "Q" (Question?), "S" (Serious.), "N" (Neutral).
;Extra
: Make your code able to determine multiple sentences.
Don't leave any errors!
{{Template:Strings}}
<br><br>