ForNext
Only Do What Only You Can Do
031. integer division and divmod
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
VBScript
JScript
Perl
int ( 13 / 5 ) none
PHP
(int) (13 / 5) none
Python
13 // 5 q, r = divmod(13, 5)
Ruby
13 / 5 q, r = 13.divmod(5)