while (条件式){
...(処理)
}
while (条件式){
...(処理)
}
private void button4_Click(object sender, EventArgs e)
{
int a=0;
while (a < 20) {
textBox1.Text += a.ToString() + " ";
a++;
}
}
while(true){
...(処理)
}
private void button5_Click(object sender, EventArgs e)
{
int a=0;
while (true) {
textBox1.Text += a.ToString() + " ";
a++;
if (10 < a) break;
}
}