while(true)
{
int lintGuessNumber=scaner.nextInt();
if(lintGuessNumber>lintTargetNum)
{
System.out.println("太大了");
continue;
}else if(lintGuessNumber
System.out.println("太小了");
continue;
}else
{
System.out.println("祝贺你猜对了");
break;
}
}
//每种情况都要考虑到
好的