Reading input 2
Write a program that reads the input until reaching any of the stopping words (end
, End
, finish
, Finish
, done
, Done
) and prints the inputted text to the output. As soon as the program reaches the stopping words, it should stop.
Input | Output |
---|---|
hello | hello |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB