DEV Community

madina1575
madina1575

Posted on • Edited on

EXPRESSIONS / IFODALAR

Ifodalar - operator dasturlashning asosiy sintaksi hisoblanadi.

Addition (qo'shish) -> +
Subtraction(ayirish) -> -
Multiplication(ko'paytirish) -> *
Division(bo'lish) -> /
Modulus(qoldiq) -> %

/ bo'lishda ishlash
int -> int => int
int -> float => float
float -> int => float
float -> float => float

  • / - bo'lish operatori juda nozik operator, sababi butun sonlarni va kasr sonlarni bo'lish har xil.

  • butun sonlarni butun sonlarga bo'lganda doimo natija butun son chiqadi, qoldiq qismi tashlab yuboriladi.

Top comments (0)