1 / 6

Input / Output

Input / Output. Input. Nilai untuk variabel dapat diisi dari piranti masukan , misalnya dari keyboard. Mengisi nilai dari piranti masukan dinamakan operasi pembacaan data. Di dalam algoritma instruksi pembacaan nlai untuk variabel dilakukan dengan notasi read. Notasi input.

merton
Télécharger la présentation

Input / Output

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. Input / Output

  2. Input Nilaiuntukvariabeldapatdiisidaripirantimasukan, misalnyadari keyboard. Mengisinilaidaripirantimasukandinamakanoperasipembacaan data. Di dalamalgoritmainstruksipembacaannlaiuntukvariabeldilakukandengannotasiread

  3. Notasi input read(nama1,nama2,…,namaN) Contoh: read(bilangan)

  4. Output Nilai yang disimpanolehmemoridapatditampilkankepirantikeluaran (misalnya monitor) Instruksipenulisannilaidilakukandengannotasiwrite

  5. Notasi Output • write(nama1,nama2,…,namaN) • write (konstanta) • write(nama,konstanta,ekspresi) • write(ekspresi)

  6. Contoh • write(bilangan1) • write(‘Nilaibilangan 1’,bilangan1) • write (‘Total’, bil1+bil2) • write(bilangan1 * bilangan2)

More Related