mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
changed 1 to 42 for better understanding
This commit is contained in:
@@ -21,13 +21,13 @@
|
||||
const std = @import("std");
|
||||
|
||||
pub fn main() void {
|
||||
const foo = 1;
|
||||
const foo = 42;
|
||||
|
||||
// Please fix this condition:
|
||||
if (foo) {
|
||||
// We want our program to print this message!
|
||||
std.debug.print("Foo is 1!\n", .{});
|
||||
std.debug.print("Foo is 42!\n", .{});
|
||||
} else {
|
||||
std.debug.print("Foo is not 1!\n", .{});
|
||||
std.debug.print("Foo is not 42!\n", .{});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user