hi friend,

you can use the while with in try and catch block like this,


private int guess()
{
int line=0; //chaned the datatype
try
{