{"id":3274,"date":"2023-02-26T14:28:43","date_gmt":"2023-02-26T19:28:43","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3274"},"modified":"2023-02-26T14:28:43","modified_gmt":"2023-02-26T19:28:43","slug":"loop-loops","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/02\/26\/loop-loops\/","title":{"rendered":"Loop-Loops"},"content":{"rendered":"<p>We use loops to not have a bunch of repetitive lines in the codes. The loops are to better organize the code. The code is repeated in a neater way. There are 3 types of loops. For loop, while loop, and do-while loop. I believe that the for loop is the one, we would use when we run a specific number of times because it has a condition, and when it is reached it displays false and stops. I believe that the while loop is the one, we would use when we don&#8217;t know the specific number of times, so it continues to loop until it displays a false. In class, you described the three parts of a for loop as:<\/p>\n<p>for (initial-action; loop-continuation-condition; action-after-each-iteration)<br \/>\n{<br \/>\n  \/\/ loop body;<br \/>\n  Statement(s);<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We use loops to not have a bunch of repetitive lines in the codes. The loops are to better organize the code. The code is repeated in a neater way. There are 3 types of loops. For loop, while loop, and do-while loop. I believe that the for loop is the one, we would use [&hellip;]<\/p>\n","protected":false},"author":27632,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[10531],"tags":[845097,845006],"class_list":{"0":"post-3274","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-student-post","7":"tag-loop","8":"tag-loops","9":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/users\/27632"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3274"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3274\/revisions"}],"predecessor-version":[{"id":3275,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3274\/revisions\/3275"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}