A=5 B=2 C=A/B D=A%B puts "5:2 is #{C} with remainder #{D}"
Ucz się bardziej efektywnie, za darmo:
Wprowadzenie do Pythona
7.1M uczących się
Wprowadzenie do Java
4.7M uczących się
Wprowadzenie do C
1.5M uczących się
Wprowadzenie do HTML
7.5M uczących się