If you want to run the loop until the user enters period(.), then you can use some bool flag which will be set to true initially. Then write a while which will run until the flag is false. In the while read the character and if it is a period then set the flag to false.
or you can run the while loop infinitely and break the loop if the char is a period else continue.
Asked in February 2016Viewed 1,253 timesVoted 7Answered 2 times