Pertemuan 9-10Operasi Looping (Pengulangan) презентация
Содержание
- 2. Learning Outcomes Pada akhir pertemuan ini, diharapkan peserta didik akan mampu
- 3. Outline Materi Operasi Pengulangan (looping) Konstruksi for, while dan do-while Nested
- 4. Operasi Repetisi Beberapa instruksi diulang untuk suatu jumlah pengulangan yang tertentu
- 5. Operasi Repetisi : for Konstruksi for for(exp1; exp2; exp3) statement; atau:
- 6. Operasi Repetisi : for exp1 dan exp3 boleh terdiri dari beberapa
- 7. Operasi Repetisi : for Konstruksi for
- 8. Operasi Repetisi : for Contoh : for (x=1; x <= 10;
- 9. Operasi Repetisi : for Contoh : Program mencetak angka dari 1
- 10. Operasi Repetisi : for Contoh penggunaan for dalam program. Ingin mengetahui
- 11. Operasi Repetisi : for Contoh :
- 12. Operasi Repetisi : for Infinite Loop Untuk membuat infinite loop dapat
- 13. Operasi Repetisi : for for (int x=1;x<=5;x++) for (int y=5;
- 14. Operasi Repetisi : for Contoh :
- 15. Operasi Repetisi : while Sintaks : while (exp) statements; atau
- 16. Operasi Repetisi : while Konstruksi while
- 17. Operasi Repetisi : while exp adalah ekspresi boolean yang menghasilkan nilai
- 18. Operasi Repetisi : while Contoh : while(product <= 1000) product =
- 19. Operasi Repetisi : while Perintah for setara dengan while sbb: exp1;
- 20. Operasi Repetisi : do-while Sintaks : do{ < statements >;
- 21. Operasi Repetisi : do-while Konstruksi do-while
- 22. Operasi Repetisi : do-while Contoh: do{ printf(”%d\n”,counter); } while(++counter <=10);
- 23. Operasi Repetisi Pada konstruksi while, statement atau blok statement mungkin tidak
- 24. Operasi Repetisi Beberapa cara untuk menghentikan pengulangan, ini dapat dilakukan dengan
- 25. Operasi Repetisi Contoh : Cara ‘Pertanyaan’ pada konstruksi While
- 26. Operasi Repetisi Contoh : Cara ‘sentinel’ pada konstruksi do-while Sebagai sentinel,
- 27. Operasi Repetisi #include<stdio.h> int main() { int x = 1;
- 28. Break vs Continue break: Digunakan untuk keluar dari loop (for,
- 29. Break vs Continue Contoh :
- 30. Break vs Continue Contoh :
- 31. Break vs Continue
- 32. Break vs Continue Contoh :
- 33. Latihan for (i=k; i < n; i++) printf(”Binus\n”); Jika k
- 34. Latihan for (i=k; i >= n; i--) printf(”Binus\n”); Jika k
- 35. Latihan Dapatkah infinite/forever loop ditulis menggunakan for loop, while loop dan
- 36. Latihan Bandingkan dua buah sintaks for berikut ini : Jelaskan output
- 37. Latihan #include <stdio.h> int main() { int x,y; for(x=1;x<=3;x++)
- 38. Latihan #include <stdio.h> int main() { int x,y; for(x=1;x<=3;x++)
- 39. Latihan Jelaskan output program berikut ini :
- 40. Latihan Jelaskan output program berikut ini :
- 41. Latihan Buat program untuk menampilkan bilangan ganjil dari 11 s/d 188,
- 42. Latihan Diasumsikan hari 1 menyatakan senin, 2 - selasa, 3 -
- 43. Latihan int x ; for(x=0 ; x<10 ; x++) printf("Hello\n");
- 44. Latihan Buatlah program untuk menampilkan gambar seperti contoh dibawah, dimana N
- 45. Latihan Buatlah program untuk menampilkan gambar seperti contoh dibawah, dimana N
- 46. Latihan Apa Output program dibawah ? #include <stdio.h> int main()
- 47. Скачать презентацию













































Слайды и текст этой презентации
Скачать презентацию на тему Pertemuan 9-10Operasi Looping (Pengulangan) можно ниже:
Похожие презентации