+ 1

What’s the result of using a modulus operator for 38%5?

help me please

18th Dec 2020, 9:15 AM
jabran khan
jabran khan - avatar
3 odpowiedzi
18th Dec 2020, 9:18 AM
Sâñtôsh
Sâñtôsh - avatar
+ 1
How many times can 5 go into 38? 5x7= 35 38 - 35 = 3
18th Dec 2020, 9:22 AM
Chris Coder
Chris Coder - avatar
0
Javascript: remainder = 38 % 5 console.log(remainder) //output 3
18th Dec 2020, 9:27 AM
Chris Coder
Chris Coder - avatar