I'm not too sure if there might have been another duplicate, but question as per topic.
The purpose of this question is not to find out whether you should or should not use for loop to implement sentinel control.
But rather to see if it can be done and hence have a better understanding of the distinction between the for and the while loop.