Posts

Showing posts from October, 2018

Algo Week 5 (String Manipulation, Pointers , Array)

Image
In the week 5 of algorithm class. we learnt about many things regarding the pointers, string manipulation and array. in the week 1 of algorithm class we already learnt about the array but this week algorithm class goes further into the array functionality. from this week class, we learnt about how to use the pointers, the pointers usually used when we wanted to assign a certain variable with another variable declaration. about the string manipulation, we now know there's is so many string manipulation function called strstr,strcmp,strlen all of this function have 1 purpose. for example the strlen is used to know about the length of a certain string. while strcmpr used to compare 1 strings to another strings to know which ASCII worth more. and on the array material, what we learnt from the class is that we can use the index of an array to print certain characters from 1 string for example. from this week algo class we know how to utilize the C programming even more
This blog created by Yulio Darmawan Kilfi / 2201794984

Algo Week 4 (Selection & Repetition)

Image
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.