{"id":3912,"date":"2023-03-02T15:07:45","date_gmt":"2023-03-02T20:07:45","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3912"},"modified":"2023-03-02T15:07:54","modified_gmt":"2023-03-02T20:07:54","slug":"3912","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/03\/02\/3912\/","title":{"rendered":"three loops"},"content":{"rendered":"<p>Programmers use a for loop to run a section of code repeatedly for a predetermined number of times. Typically, it has three components:<\/p>\n<ol>\n<li>Initialization: The loop counter variable is given a starting value in this section. Often, this is carried out prior to the loop&#8217;s execution.<\/li>\n<li>Condition: Before each iteration of the loop in this section, a condition is checked. The loop keeps running if the condition is true. The loop ends if the condition is false.<\/li>\n<li>Decrement: At each loop iteration in this section, the loop counter variable is either increased or decreased. By doing this, the loop will run the appropriate amount of times.<\/li>\n<\/ol>\n<p>example<\/p>\n<p>for (initialization; condition; increment\/decrement) {<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Programmers use a for loop to run a section of code repeatedly for a predetermined number of times. Typically, it has three components: Initialization: The loop counter variable is given a starting value in this section. Often, this is carried out prior to the loop&#8217;s execution. Condition: Before each iteration of the loop in this [&hellip;]<\/p>\n","protected":false},"author":29454,"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":[663943,10531,1],"tags":[],"class_list":{"0":"post-3912","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-instructor","7":"category-student-post","8":"category-uncategorized","9":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3912","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\/29454"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3912"}],"version-history":[{"count":2,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3912\/revisions"}],"predecessor-version":[{"id":3914,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3912\/revisions\/3914"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}