Posts

Showing posts with the label for loop

C: Exercise 4-3 improved by splitting ascending/descending loop into two...

Image
Improvement to exercise 4-3 using a different type of switchable for loop, with compiler examination.  Repl: https://replit.com/@pereiradaniel/Improved-asc-desc-for-loop-added-to-existing-project Git repo: https://github.com/pereiradaniel/beginning_c/blob/master/ch4/exercises/4_3/refactor5.c  

C: Improve exercise 4-3 with improved ascending/descending for loop.

Image
Improvement to exercise 4-3 using a different type of switchable for loop, with compiler examination.  Repl: https://replit.com/@pereiradaniel/Improved-asc-desc-for-loop-added-to-existing-project Git repo: https://github.com/pereiradaniel/beginning_c/blob/master/ch4/exercises/4_3/refactor5.c  

C: Improved ascending and descending for loop.

Image
Improved ascending and descending for loop with alternate example and compilation comparison. Repl: https://replit.com/@pereiradaniel/Exercise-4-3-refactor-4 Git repo: https://github.com/pereiradaniel/c_programs/blob/master/asc_desc_for/asc_desc_for2.c  

C: Ascending or descending for loop.

Image
A for loop that can run forward or backward. Repl: https://replit.com/@pereiradaniel/Ascending-or-descending-for-loop Git repo: https://github.com/pereiradaniel/c_programs/blob/master/asc_desc_for/asc_desc_for.c