-5
私はATMのC#を学んだし、私は次の操作を実行する方法がわからない:停止と間違って入力した後、初めに始まる
ようwhile (points > 0)
{
String input = Convert.ToString(Console.ReadLine());
if (input != true)
{
Console.WriteLine("wrong number!");
// here it should stop the following code and start again at the beginning at the while-loop.
}
// code if number is correct
「停止;」、助けてくれてありがとう!
'continue'が再び上でループを開始します。 「休憩」が壊れてしまう。 [while'のドキュメント](https://msdn.microsoft.com/en-us/library/2aeyhxcd.aspx)には微妙に説明されていますが、 –
「else」が正しいときにそれを追加しますか? – stuartd