Rabu, 10 Oktober 2018

Wednesday 10 October 2018


Algorithma Program Control Repetition

While vs Do While

Do While Need Input first like ATM machine

Syntax for
 for(exp1;exp2;exp3)statement;
exp1 = initialization
exp 2 = condition
exp3 = increament or decreament

exp1,2,3 are optional
Learning How to use for with making pattern in C++

while
while(exp)statement;
while boolean expression
!=0

Do while
Do{statement;}while{exp};


using break; to force end the loops and Ctrl+c to quit from exe

Christoper Suteja
Bina Nusantara 2201811656


Tidak ada komentar:

Posting Komentar