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

Часто задают такие вопросы?
Учитесь эффективнее, бесплатно:
Актуальное сегодня
HTML/CSS questions
1 Votes
Find courses
0 Votes
Certificate Problem
0 Votes
How to learn css and html
0 Votes
C pointers
1 Votes
what the hell is going on this lessons cause i cant undrstand anything on any of the lessons
0 Votes
About progress
0 Votes