logo

Python dasturlash tilida Qoldiqli bo’lish va butun bo’lish haqida (Musbat va manfiy sonlar)

Yuklangan vaqt:

10.08.2023

Ko'chirishlar soni:

0

Hajmi:

888.8779296875 KB
PYTHON DASTURLASH 
TILIDA QOLDIQLI BO’LISH 
VA BUTUN BO’LISH 
HAQIDA (MUSBAT VA 
MANFIY SONLAR)   A % B 
print(5%9) 
print(18%8) 
print(4%2) 
print(8%9) 
10.08.2023  -A % B 
print(-11%2) 
print(-14%16) 
print(-16%6) 
print(-24%25) 
10.08.2023  A % -B 
print(15%-4) 
print(26%-16) 
print(18%-5) 
print(40%-2) 
10.08.2023  -A % -B 
print(-4%-5) 
print(-8%-6) 
print(-9%-15) 
print(-40%-40) 
10.08.2023  A // B
print(15//4) 
print(4//8)
print(9//16)
print(28//3)
10.08.2023  -A // B
print(-15//4) 
print(-4//8)
print(-9//16)
print(-28//3)
10.08.2023  A // -B
print(16//-4) 
print(9//-2)
print(7//-1)
print(24//-5)
10.08.2023  -A // -B
print(-9//-4) 
print(-18//-2)
print(-25//-4)
print(-4//-5)
10.08.2023

PYTHON DASTURLASH TILIDA QOLDIQLI BO’LISH VA BUTUN BO’LISH HAQIDA (MUSBAT VA MANFIY SONLAR)

A % B print(5%9) print(18%8) print(4%2) print(8%9) 10.08.2023

-A % B print(-11%2) print(-14%16) print(-16%6) print(-24%25) 10.08.2023

A % -B print(15%-4) print(26%-16) print(18%-5) print(40%-2) 10.08.2023

-A % -B print(-4%-5) print(-8%-6) print(-9%-15) print(-40%-40) 10.08.2023