rss
twitter
facebook

Home

C# - Ciclo While

private void button2_Click(object sender, EventArgs e)
{
int x = 0;
int i = 0;

while (i<=99)
{
i++;
x = x + i;
}
Lresult1.Text = Convert.ToString(x);
}

0 comentários:

 
Powered by Blogger