Add solutions

This commit is contained in:
Laurens Miers 2024-09-25 15:26:17 +02:00
parent 7417f01d5d
commit b056b6ad81
96 changed files with 229 additions and 166 deletions

View file

@ -9,10 +9,10 @@ const std = @import("std");
const NumError = error{IllegalNumber};
pub fn main() void {
pub fn main() !void {
const stdout = std.io.getStdOut().writer();
const my_num: u32 = getNumber();
const my_num: u32 = getNumber() catch 42;
try stdout.print("my_num={}\n", .{my_num});
}