General FizzBuzz: Difference between revisions

Content deleted Content added
Robbie (talk | contribs)
Added an example for D
CalmoSoft (talk | contribs)
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>
for n = 1 to 20
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