How to resolve the algorithm FizzBuzz step by step in the TUSCRIPT programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm FizzBuzz step by step in the TUSCRIPT programming language
Table of Contents
Problem Statement
Write a program that prints the integers from 1 to 100 (inclusive).
But:
The FizzBuzz problem was presented as the lowest level of comprehension required to illustrate adequacy.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm FizzBuzz step by step in the TUSCRIPT programming language
Source code in the tuscript programming language
$$ MODE TUSCRIPT
LOOP n=1,100
mod=MOD (n,15)
SELECT mod
CASE 0
PRINT n," FizzBuzz"
CASE 3,6,9,12
PRINT n," Fizz"
CASE 5,10
PRINT n," Buzz"
DEFAULT
PRINT n
ENDSELECT
ENDLOOP
You may also check:How to resolve the algorithm Euler's constant 0.5772... step by step in the Delphi programming language
You may also check:How to resolve the algorithm Check that file exists step by step in the Odin programming language
You may also check:How to resolve the algorithm Function prototype step by step in the PL/I programming language
You may also check:How to resolve the algorithm Humble numbers step by step in the Perl programming language
You may also check:How to resolve the algorithm Singleton step by step in the TXR programming language