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

Häufig solche Fragen?
Effizienter lernen, kostenlos:
Heute heiß
Functions in python
2 Votes
HTML
1 Votes
For Mobile app
0 Votes
I need advice
0 Votes
Answer please
0 Votes
I need advice
0 Votes