Posts

Algorithm and Programming

Nama : Andhika Naafi Ramadhan NIM : 2201791093 Email : andhika.ramadhan@binus.ac.id Tugas Algorithm and Programming 1.Repetition    Repetition is one or more instruction that can be repeated for a certain amount of time.    Operators : -for                       -while                       -do-while    Repetition: - For    example : for(exp1,exp2,exp3)statement;    exp1 : initialization    exp2 : conditional    exp3 : increment or decrement    all of them are optional.    Repetition: -While    example : while(exp)statements;    or:       while(exp)    {       statement1;       statement2;    }    Repetition: Do-while    example : do{...