mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
exercise for new for-loops
This commit is contained in:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user