How to resolve the algorithm FizzBuzz step by step in the E programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm FizzBuzz step by step in the E 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 E programming language
Source code in the e programming language
for i in 1..100 {
println(switch ([i % 3, i % 5]) {
match [==0, ==0] { "FizzBuzz" }
match [==0, _ ] { "Fizz" }
match [_, ==0] { "Buzz" }
match _ { i }
})
}
You may also check:How to resolve the algorithm Loops/Do-while step by step in the Stata programming language
You may also check:How to resolve the algorithm Modular inverse step by step in the XPL0 programming language
You may also check:How to resolve the algorithm Rot-13 step by step in the Seed7 programming language
You may also check:How to resolve the algorithm Long multiplication step by step in the jq programming language
You may also check:How to resolve the algorithm Long primes step by step in the Common Lisp programming language