03:00

Ikkita Sonning Qoldig'i

x ni y ga bo'lgandagi qoldiqni toping!

Qoldiqni hisoblash
x mod y
Python'da: math.fmod(x, y) yoki x % y
? mod ? = ?
import math
x = float(input('x='))
y = float(input('y='))
natija = ____?____
print('fmod(', x, ',', y, ')=', natija)
  
math.fmod(x,y)
x % y
x - y * math.floor(x/y)
x / y
x // y
abs(x - y)
x + y