rss
twitter
facebook

Home

C# - Ciclo Do While

private void button3_Click(object sender, EventArgs e)
{

int x = 0;
int i = 0;

do
{
i++;
x = x + i;

} while (i <= 99);

lresult3.Text = Convert.ToString(x);
}

0 comentários:

 
Powered by Blogger