fb pixel

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 my name finish
hello my name
To check your solution you need to sign in
Sign in to continue