General FizzBuzz: Difference between revisions
Content deleted Content added
Added an example for D |
|||
Line 1,950: | Line 1,950: | ||
=={{header|Ring}}== |
=={{header|Ring}}== |
||
{{incorrect||Mappings are supposed to be parameterized, not hardwired as they are here.}} |
|||
<lang ring> |
<lang ring> |
||
limit = 20 |
|||
for n = 1 to limit |
|||
if n % 3 = 0 see "" + n + " = " + "Fizz"+ nl |
if n % 3 = 0 see "" + n + " = " + "Fizz"+ nl |
||
but n % 5 = 0 see "" + n + " = " + "Buzz" + nl |
but n % 5 = 0 see "" + n + " = " + "Buzz" + nl |