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

Hai spesso domande come questa?
Impara in modo più efficiente, gratuitamente:
Popolare oggi
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
Decorators in python.
2 Votes
Hello !
0 Votes
Please click me
0 Votes
Salut tout le monde
1 Votes