02.01.2015 Views

PERULANGAN DALAM BAHASA C Obyektif : 12. Mengetahui ... - iLab

PERULANGAN DALAM BAHASA C Obyektif : 12. Mengetahui ... - iLab

PERULANGAN DALAM BAHASA C Obyektif : 12. Mengetahui ... - iLab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

output:<br />

0<br />

1<br />

2<br />

3<br />

4<br />

b. Statement while<br />

Sintaks :<br />

while (kondisi ) statement;<br />

Statement dapat berupa statement kosong, statement tunggal<br />

maupun blok statement. Proses perulangan akan terus<br />

dilaksanakan jika kondisi dalam while masih bernilai benar.<br />

Contoh :<br />

#include <br />

main()<br />

{<br />

int i=0;<br />

while(i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!