Introduction to Algorithm & Programming Session 2

Tadi kita mendapatkan kelas algorithm dan progamming, dan kali ini kita belajar banyak hal yang cukup membosankan lol.  Kita belajar tentang operatOR dan operatAND
Based on its operation type, operator can be grouped as:
–Arithmetic Operator  = operates in mathematical function.
* Modulo = untuk mengetahui hasil sisa, cnth : 10%2 = 0 (sisa 0), 15%2=1 (sisa bagi 1)

Arithmetic–Logical Operator = operand with TRUE or FALSE valuebum–Assignment Operator = maksud dari “=” seperti berikut: a=b maka artinya b dimasukkan ke a. Tapi kalau ingin mengatakan a SAMA DENGAN b, maka a==b.
x = 2;  // constant
x = y;  // other variable
x = 2 * y;  // expression
x = sin (y);  // function

–Relational Operator = Use to compare to values with TRUE or FALSE result15–Bitwise Operator = 151–Pointer Operator = will be discussed on session 13-14

This entry was posted in Posts. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *