Operator | Arti | Contoh |
+ | Penambahan | 5 + 2 = 7 |
- | Pengurangan | 5 – 2 = 3 |
* | Perkalian | 5 * 2 = 10 |
/ | Pembagian | 5 / 2 = 2.5 |
\ | Pembagian bulat | 5 \ 2 = 2 |
Mod | Sisa pembagian bulat | 5 Mod 2 = 1 |
^ | Pangkat | 5 ^ 2 = 25 |
Contoh Project:
Click here if you like this article.
0 Comments