RosettaCodeData/Task/FizzBuzz/00-TASK.txt

19 lines
855 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
;Task:
Write a program that prints the integers from   '''1'''   to   '''100'''   (inclusive).
But:
2023-08-01 14:30:30 -07:00
:*   for multiples of three,   print   '''Fizz'''     instead of the number;
:*   for multiples of five,   print   '''Buzz'''     instead of the number;
:*   for multiples of both three and five,   print   '''FizzBuzz'''     instead of the number.
2023-07-01 11:58:00 -04:00
The   ''FizzBuzz''   problem was presented as the lowest level of comprehension required to illustrate adequacy.
;Also see:
*   (a blog)   [http://weblog.raganwald.com/2007/01/dont-overthink-fizzbuzz.html dont-overthink-fizzbuzz]
*   (a blog)   [http://blog.codinghorror.com/fizzbuzz-the-programmers-stairway-to-heaven/ fizzbuzz-the-programmers-stairway-to-heaven]
<br><br>