Loops are used torepeat a block of code. Being able to have your program repeatedly execute ablock of code is one of the most basic but useful tasks in programming -- manyprograms or websites that produce extremely complex output (such as a messageboard) are really only executing a single task many times. (They may beexecuting a small number of tasks, but in principle, to produce a list ofmessages only requires repeating the operation of reading in some data anddisplaying it.) Now, think about what this means: a loop lets you write a verysimple statement to produce a significantly greater result simply by repetition. WWW.MEDIU.EDY.MY WWW.VB.MEDIU.EDU.MY
0 التعليقات:
إرسال تعليق