example : doing something 9999 time (maybe more than)

```
for (int i = 1; i <= 9999; i++)
{
    // do something
    label1.content = 100*i/9999 + "%" ;
}

```

and I want to show percentage of loop on label1 when I compile I can't doing anything several a millisecond and my label show 100% only. someone have any idea sir? thank you.