1 / 13

OPERATOR DAN STATEMEN I/O

OPERATOR DAN STATEMEN I/O. Pertemuan 3. OPERATOR. Operator adalah sebuah simbol yang mengolah nilai pada oper­and dan menghasilkan suatu nilai baru. Jenis Operator :. 1. Operator logika Tabel Kebenaran. 2. Operator Aritmatika. 3. Operator Relasi / Hubungan. 4. Operator Bitwise.

Download Presentation

OPERATOR DAN STATEMEN I/O

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. OPERATOR DAN STATEMENI/O Pertemuan 3

  2. OPERATOR Operator adalahsebuahsimbol yang mengolahnilaipada oper­and danmenghasilkansuatunilaibaru.

  3. Jenis Operator : 1. Operator logika TabelKebenaran

  4. 2. Operator Aritmatika

  5. 3. Operator Relasi/Hubungan

  6. 4. Operator Bitwise

  7. STATEMENT I/O Statement Input adalah statement/fungsi yang digunakanuntukmembaca data dariinputingdevice (keyboard/mouse) Contoh Statement Input : • Cin • Read • Getchar 0 • Getch () • Scanf ()

  8. Statememtoutput adalahstatement yang digunakanuntukmenuliskan data kelayar monitor. Contoh: • Cout • Puts () • Putchar () • Printf() • Writeln

  9. Contoh Buatlahalgoritmadan program untukmenampilkanketerangan Lulus atautidaknyaseorangsiswadenganketentuannilaiakhirdantugas yang ditempuh. Bilanilaiakhir>70 dantugas >=75, makasiswatersebutakan lulus, jikatidakmemenuhimakasiswatersebuttidak lulus.

  10. Penjelasan Algoritmadaripermasalahandiatasadalah: • Masukannilaitugas • Jikanilaiakhir >70 dantugas >=75, jikatidakkelangkah 5 Cetak Lulus, kelangkah 6 • CetakTidak lulus • Selesai

  11. Jikadiprogramkan

  12. Hasil Eksekusi

  13. S E K I A N Aswar R.R.

More Related