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

Часто задают такие вопросы?
Учитесь эффективнее, бесплатно:
Актуальное сегодня
Python beginner 🔰
1 Votes
Domain name
5 Votes
After the break
2 Votes
Why is the model not loading?
0 Votes
URL LINK
0 Votes
C++ question
1 Votes
Question on 50- win badge
0 Votes