I was given a problem know as the FizzBuzz problem explained below. I'm really proud of solving this one

Dec 5, 2022 10:30 PM

A program that takes the numbers 1 - 100 if it’s a multiple of 3 it prints “Fizz” if it’s a multiple of 5 it prints “Buzz” If the number is a multiple of BOTH it prints “FizzBuzz” if none it prints the number.

Example of the output.

macos

programming

swiftui

Nice. I actually created an app that implements FizzBuzz in several programming languages, i.e. Swift, Go, Rust, C, etc.

2 years ago | Likes 1 Dislikes 0

3 things everyone should know to some degree: (1) weld, (2) build electronics, (3) code. With these skills you can do almost anything.

2 years ago | Likes 2 Dislikes 0

Nice! Learning programming is so much fun.

2 years ago | Likes 2 Dislikes 0

Not enough lines of code. Elon would fire you

2 years ago | Likes 6 Dislikes 0

Someone else already made the Enterprise version of Fizzbuzz https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition

2 years ago | Likes 5 Dislikes 0

I’m going to need this in PHP

2 years ago | Likes 3 Dislikes 0

It's interesting to see how litmus tests become passe. In this case, the test was to determine if a person understood modulo operations.

2 years ago | Likes 8 Dislikes 0

In a language which abstracts that to a boolean test, nothing is learned, except the interviewer doesn't know what they are testing.

2 years ago | Likes 7 Dislikes 0

This was in the first week of learning Swift.

2 years ago | Likes 1 Dislikes 0

Is the "real" version expecting you to look for a modulus of 0 from 3 and 5?

2 years ago | Likes 2 Dislikes 0

Well, how modulus works and demonstrate it at any rate.

2 years ago | Likes 3 Dislikes 0

I see...the concept is trivial to me but terminology isnt, so depending on the wording I may or may not stare at you blankly in response.

2 years ago | Likes 2 Dislikes 0