Pertemuan 03 - C

  • 507 views
Uploaded on

 

More in: Education , Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
507
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
9
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. PEMROGRAMAN C Continued [email_address]
  • 2. Review Statement Output
  • 3. Statement Output
  • 4. Statement Output
      • Escape sequences character  karakter dengan makna khusus menggunakan notasi (back slash)
  • 5. Escape Sequence Character
  • 6. Escape Sequence Character
  • 7. Penulisan tipe data
      • Apa bedanya %f dan %.2f?
  • 8. Statement output: puts
  • 9. Contoh program puts
  • 10. Statement output: putchar
  • 11. Contoh program putchar #include <stdio.h> #include <conio.h> int main(){ putchar(' U '); putchar(' I '); putchar(' K '); putchar(' A '); getch(); }
  • 12. Statement output: cout
  • 13. Contoh program cout #include <stdio.h> #include <conio.h> #include <iostream.h> int main(){ cout << &quot;Hello World&quot; << endl; getch(); }
  • 14. Statement Input
  • 15. Statement Input: scanf
  • 16. Statement Input: gets
  • 17. Contoh program gets
  • 18. Statement Input: cin
  • 19. Contoh program cin
  • 20. Statement Input: getche
  • 21. Latihan Buat program C untuk menampilkan karakter berikut:
  • 22.  
  • 23.