Last active
January 19, 2020 00:51
-
-
Save josikie/8fb9c8bd62750d0ec5ee05c507375496 to your computer and use it in GitHub Desktop.
Dasar Pemrograman C++ (2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Berikut struktur Operator Ternary : | |
a + b - c; | |
// contohnya : | |
int a = 3 + 5 - 2; // hasil dari perhitungan disamping adalah enam. Ciri ciri operator ternary adalah | |
// nilai ada 3 buah atau lebih. Pada contoh diatas tiga sebagai nilai pertama, lima sebagai nilai kedua, dan | |
// dua sebagai nilai ketiga |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment