Answer to Question #28547 in Action Script | Flash | Flex | ColdFusion for yadul

Question #28547
write a do while loop that displays numbers 1/3/5/7...11
1
Expert's answer
2013-04-16T12:02:22-0400
var i:Number = 1; //setting default value of "i"variable to 1
do //starting the cycle
{
trace(i); //outputting current value of 'i'
i=i+2; //increasing value of 'i' by 2
}
while (i<12); //setting the condition of ending cycle

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS