do{
...(処理)
}while (条件式)
private void button9_Click(object sender, EventArgs e)
{
int a=0;
do {
textBox1.Text += a.ToString() + " ";
a++;
} while (a < 10);
}
0 1 2 3 4 5 6 7 8 9
private void button10_Click(object sender, EventArgs e)
{
int a=0;
do {
a++;
textBox1.Text += a.ToString() + " ";
} while (a < -5);
}
1