# What is wrong with the code?

**URL:** https://forum.kirupa.com/t/what-is-wrong-with-the-code/295327
**Category:** Uncategorized
**Created:** [August 28, 2009, 5:42am UTC](https://forum.kirupa.com/t/what-is-wrong-with-the-code/295327 "2009-08-28T05:42:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pozirk](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@pozirk](https://forum.kirupa.com/u/pozirk)
#### Post date: [August 28, 2009, 5:42am UTC](https://forum.kirupa.com/t/what-is-wrong-with-the-code/295327/1 "2009-08-28T05:42:37Z")

</div>

AS3, Flash SC4

```auto
var i:int = 0; 
var plus:int = -2; 
var finish:int = -10; 
do 
{ 
  trace(i); 
} 
while(i+=plus != finish);

```

Output:  
0  
1  
2  
3  
4  
5  
…
