Algo Week 4 (Selection & Repetition)
What we learnt from learning algorithm in week 4 is about selection and repetition, it consists of if,else,switch case,dowhile,for and many else. basically we learnt how to do a loop in C language that proof beneficial for your programming purposes. selection in programing proof to be useful in terms of use. the selection logics if usually used when were about to make a menu type of program. Although the selection logic can also be used to solve mathematical problems such as even and odd numbers. by using if and else we can tell whether or not a certain number is even or odd. by using switch case we can make a simple menu type of program. for the repetition we can use the dowhile or for. this loop usually be used to solve a mathematical problem or solve any problems that consist of looping or counting a certain steps over and over again. by learning selection and repetition you can easily solve any problems given to you in seconds if you master the logic.

Comments
Post a Comment