Colorful numbers: Difference between revisions
m
→{{header|Ruby}}: mostly indentation
m (→{{header|Ruby}}: mostly indentation) |
|||
Line 1,182:
All colorful candidates larger than 1 digit must be a permutation of digits [2,3,4,5,6,7,8,9], so test only those:
<syntaxhighlight lang="ruby">def colorful?(ar)
end▼
end
end
puts "The colorful numbers less than 100 are:\n #{
puts "
total = 0
|