How to resolve the algorithm FizzBuzz step by step in the langur programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm FizzBuzz step by step in the langur 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 langur programming language

Source code in the langur programming language

for .i of 100 {
    writeln given(0; .i rem 15: "FizzBuzz"; .i rem 5: "Buzz"; .i rem 3: "Fizz"; .i)
}

for .i of 100 {
    writeln if(.i div 15: "FizzBuzz"; .i div 5: "Buzz"; .i div 3: "Fizz"; .i)
}

  

You may also check:How to resolve the algorithm String interpolation (included) step by step in the Frink programming language
You may also check:How to resolve the algorithm Reverse a string step by step in the Zoea programming language
You may also check:How to resolve the algorithm Keyboard input/Obtain a Y or N response step by step in the Oforth programming language
You may also check:How to resolve the algorithm Create a file step by step in the Mirah programming language
You may also check:How to resolve the algorithm URL parser step by step in the jq programming language