Words are provided one by one. Output all words until you see the word stop (case sensitive). Do not output stop itself.
• Words are provided one by one (each word on a new line)
• Input ends when the word "stop" is read
• Print each word on a new line
• Do not print "stop"
• Each word length ≤ 10^5
• Comparison is case sensitive ("stop" only)
Words are read one by one.
We print each word until we see "stop".
When "stop" appears, we stop reading and do not print it.
1.Start an infinite loop.
2.Read a word using input().
3.If the word is exactly "stop", break the loop.
4.Otherwise, print the word.
5.Continue until "stop" is found.