Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":27145,"date":"2015-11-23T21:23:04","date_gmt":"2015-11-24T03:23:04","guid":{"rendered":"http:\/\/mferprogr.wordpress.com\/?p=372"},"modified":"2015-11-23T21:23:04","modified_gmt":"2015-11-24T03:23:04","slug":"when-to-use-what-type-of-repetition","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/when-to-use-what-type-of-repetition\/","title":{"rendered":"When to use what type of repetition"},"content":{"rendered":"
\"Captura<\/a>
By Thomas Harper<\/figcaption><\/figure>\n

This is mastery 22. I’m really excited because, after this one, I have to do just one more mastery!<\/p>\n

In this post, I’ll write about repetition types, which are used when you want the program to do the same thing, again and again, under a certain condition.<\/p>\n

There main repetition types are:<\/p>\n

For loop<\/b><\/p>\n

They are compose by three parts:<\/p>\n

    \n
  1. Initialization variable- \u00a0value in which the loop will start.<\/li>\n
  2. Condition- when te loop will end.<\/li>\n
  3. Action- usually increment or decrement a variable.<\/li>\n<\/ol>\n

    You should use a for loop when you want to give a certain value for the loop to start and a certain action.<\/p>\n

    Here’s an example of a code where I used a for loop:<\/p>\n

    https:\/\/github.com\/mferflores\/fibonacci\/blob\/master\/function<\/a><\/p>\n

    While<\/strong><\/p>\n

    You should use the while loop when you want the program to perform the loop only when te condition is true.<\/p>\n

    Here’s an example of a code where I used a while\u00a0loop:<\/p>\n

    https:\/\/github.com\/mferflores\/Babylonian\/blob\/master\/Square%20root<\/a><\/p>\n

    Do\/while<\/strong><\/p>\n

    You should use the do\/while loop only when you want the loop to be performed at least once.<\/p>\n

    Here’s an example of a code where I used a do\/while\u00a0loop:<\/p>\n

    https:\/\/github.com\/mferflores\/WSQ14\/blob\/master\/Estimating%20e<\/a><\/p>\n

     <\/p>\n

    And here’s a video with a summary:<\/p>\n