exercise for new for-loops

This commit is contained in:
Chris Boesch 2023-03-04 16:07:53 +01:00
parent 88c3f40484
commit 47c871041c
4 changed files with 75 additions and 3 deletions

View file

@ -8,7 +8,7 @@ const print = std.debug.print;
// When changing this version, be sure to also update README.md in two places:
// 1) Getting Started
// 2) Version Changes
const needed_version = std.SemanticVersion.parse("0.11.0-dev.1711") catch unreachable;
const needed_version = std.SemanticVersion.parse("0.11.0-dev.1844") catch unreachable;
const Exercise = struct {
/// main_file must have the format key_name.zig.
@ -479,6 +479,10 @@ const exercises = [_]Exercise{
.output = "The normalized angle of 765.2 degrees is 45.2 degrees.",
.C = true,
},
.{
.main_file = "095_for_loops.zig",
.output = "1 2 4 7 8 11 13 14 16 17 19",
},
.{
.main_file = "999_the_end.zig",
.output = "\nThis is the end for now!\nWe hope you had fun and were able to learn a lot, so visit us again when the next exercises are available.",