1 / 20

Dasar-dasar Bahasa C#

Dasar-dasar Bahasa C#. Tipe Data C#. C# tdp 2 jenis data: Tipe data dasar -> int , float, byte Tipe data reference -> object delegates. Variabel. Variabel = Data yang digunakan oleh program yang disimpan sementara di memori. File New Project C# Console

Download Presentation

Dasar-dasar Bahasa C#

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. Dasar-dasarBahasa C#

  2. Tipe Data C# • C# tdp 2 jenis data: • Tipe data dasar -> int, float, byte • Tipe data reference -> object delegates

  3. Variabel • Variabel = Data yang digunakanoleh program yang disimpansementara di memori.

  4. File • New • Project C# • Console • BeriNama materi1

  5. Ubahlahkodemenjadiberikut:

  6. Ubahlahkodemenjadiberikut:

  7. Konstanta • Konstanta = Variabel yang memilikinilaitetap (tdkdptberubah) • Cth = const double PI =3.14; Console.WriteLine("Nilaikonstanta= " + PI);

  8. Operator C#

  9. Prefix Dan Posfix

  10. Operator Relasional

  11. Contoh Operator Relasional

  12. Operator Logika

  13. ContohOperator Logika

  14. Kedudukan Operator • Kedudukan * (kali) dan / (bagi) lbhdidahulukandrpd + (jml) dan – (kurang)

  15. Contoh 1 Kedudukan Operator

  16. Contoh 2 Kedudukan Operator

More Related