Học php, mysql và javascript - p 11
56
lượt xem 2
download
lượt xem 2
download
Download
Vui lòng tải xuống để xem tài liệu đầy đủ
Example 4-31 shows a modified version of the multiplication table for 12 code using such a loop. Example 4-31. A do...while loop for printing the times table for 12 "; while (++$count Notice how we are back to initializing $count to 1 (rather than 0), because the code is being executed immediately, without an opportunity to increment the variable. Other than that, though, the code looks pretty similar. Of course, if you have more than a single statement inside a do...while loop, remember to use curly braces, as in Example 4-32. Example 4-32. Expanding Example 4-31 to use curly braces "; } while (++$count...
Chủ đề:
Bình luận(0) Đăng nhập để gửi bình luận!
CÓ THỂ BẠN MUỐN DOWNLOAD