1 / 7

Pseudo-code

Pseudo-code. Pseudo-code. Pseudo artinya artinya semu atau tidak sebenarnya . Pseudo-code adalah notasi algoritma yang menyerupai notasi bahasa pemrograman .

colt-nelson
Télécharger la présentation

Pseudo-code

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Pseudo-code

  2. Pseudo-code • Pseudo artinyaartinyasemuatautidaksebenarnya. • Pseudo-code adalahnotasialgoritma yang menyerupainotasibahasapemrograman. • Karena Pseudo-code sudahmenyerupainotasibahasapemrograman, maka Pseudo-code lebihmudahuntukdikonversikedalambahasapemrograman.

  3. Pseudo-code • Sebagaicontoh, flowchart berikutiniakanditulisdalam Pseudo-code.

  4. Pseudo-code • Start • Masukkan A dan B • C = A + B • Tampilkan C • End

  5. Pseudo-code • Flowchart berikutiniakanditulismenjadi Pseudo-code.

  6. Pseudo-code • Start • Masukkan A • Sisa = A MOD 2 • IF (Sisa = 0) • Cetak “Genap” • Else • Cetak “Ganjil” • End

  7. Pseudo-code • Kita bisabebasmenulis pseudo code selamaitumudahdimengerti. • Tetapidisarankanuntukmenggunakan keyword yang umumdigunakandalambahasapemrogramanseperti : if, then, else, while, do, repeat, for, danlainnya. • Dan ikutigayapenulisanpemrogramanseperti Pascal, C++, dll.

More Related