JavaScript, 18 bytes
x=>y=>[x/y>>0,x%y]
Receives input in format (x)(y)
Gets floor of x/y by bitshifting answer by 0
Gets remainder by x%y
Puts both values in an array so that they can both be returned
fəˈnɛtɪk
- 4.2k
- 2
- 15
- 40