Pertemuan 03 - C

624 views

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
624
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Pertemuan 03 - C

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

×