This is a working solution for the famous fizz-buzz coding interview question.
using string;
using utils;
b = string_Builder;
forRange(1, 101, (i) {
i % 3 == 0 ? b.putStr("fizz");
i % 5 == 0 ? b.putStr("buzz");
b.pos == 0 ? b.putInt(i);
sys_log(b.newLine().toStr());
});
Details, explanations are in the tutorial: aglang.org/tutorial-1-fizz-buzz
How to install the compiler and configure VSCode: aglang.org/how-to-play-with-argentum-in-vscode
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.