221V 1 week ago
parent
commit
ab6a363a79
1 changed files with 11 additions and 10 deletions
  1. 11 10
      exercises/009_if.zig

+ 11 - 10
exercises/009_if.zig

@@ -20,14 +20,15 @@
 //
 const std = @import("std");
 
-pub fn main() void {
-    const foo = 1;
-
-    // Please fix this condition:
-    if (foo) {
-        // We want our program to print this message!
-        std.debug.print("Foo is 1!\n", .{});
-    } else {
-        std.debug.print("Foo is not 1!\n", .{});
-    }
+pub fn main() void{
+  const foo = 1;
+  
+  // Please fix this condition:
+  if(foo == 1){
+    // We want our program to print this message!
+    std.debug.print("Foo is 1!\n", .{});
+  }else{
+    std.debug.print("Foo is not 1!\n", .{});
+  }
 }
+