1 Respuesta
0
You can simply use % operator....
e.g.
puts "#{9 % 2}"
Output:
1
10th Apr 2020, 6:48 AM
DeWill

¿Tienes a menudo preguntas como esta?
Aprende gratis de forma más eficaz
En tendencia hoy
I can't see my activity
5 Votes
Can anyone help me?
1 Votes
High paying job?
2 Votes
Python
3 Votes