whats wrong with this?
Posted: Fri Oct 17, 2008 6:23 am
This is just generic code and has 5 things wrong with it. What are ?
So far Iv spotted :
1. the missing }
2. the : instead of ;
3. i == 0 should be i = 0
4. it should be i < 10
5. unsure?
does that look correct so far?
Code: Select all
var a = 5;
var b = 10;
for(i == 0; 1 < 10; i++)
{
print(i + a):
)
var c = (a*2) - 10;
var d = b / c;
print(d);
1. the missing }
2. the : instead of ;
3. i == 0 should be i = 0
4. it should be i < 10
5. unsure?
does that look correct so far?