# SOS

 Jorene Lim · December 9, 2014 hello there,can anyone please explain to me how to let my program run until a sentinel of 999 is entered?? For I need to convert Fahrenheit to Celsius..while loop and do-while loop respectively..

## Replies

 Jorene Lim · December 9, 2014 ok..thank you..^^ n I still got another problem..here's the question..Design an algorithm that will prompt for and receive the time expressed in 2400 format(e.g 2305 hours),convert it to 12-hour format(e.g 11.05pm) and display the new time to the screen.Your program is to repeat the processing until a sentinel time of 9999 is entered. Bernard Pyc0d333 Parah · December 9, 2014 ``for while loopint sentinel;while(sentinel!=999){ statement; //whatever you want to run will keep running till the user enters 999}using the do while loop int sentinel;do{ statement; }while (sentinel !=999);`` Bernard Pyc0d333 Parah · December 9, 2014 Hello Jorene. Though your question is vague.For the sentinel you can set it thus for while loop
int sentinel;while(sentinel!=999){    statement; //whatever you want to run will keep running till the user enters 999}
using the do while loop
int sentinel; do{  statement; }while (sentinel !=999);
• 1

## C

120,972 followers