I am trying to write a code, where i get input in a form of a single word on each line, i scan it and print it, then get another. When there is no word and there is only an