summaryrefslogtreecommitdiff
path: root/exercises/003_assignment.zig
diff options
context:
space:
mode:
authorIbrahim Muftee <ibrahim@muftee.net>2026-06-29 15:11:40 -0500
committerIbrahim Muftee <ibrahim@muftee.net>2026-06-29 15:15:14 -0500
commitbdfe3df2947f8787c8a4ef8c534f6a8932e13871 (patch)
treef2df9a5f56b6c7f95c0978a861cb0ecf60560391 /exercises/003_assignment.zig
parentd093f37e1e4c5aed4a4c8d4999001134aec251ca (diff)
feat: begin solving exercises
Diffstat (limited to 'exercises/003_assignment.zig')
-rw-r--r--exercises/003_assignment.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/003_assignment.zig b/exercises/003_assignment.zig
index 10ba8cb..23ef638 100644
--- a/exercises/003_assignment.zig
+++ b/exercises/003_assignment.zig
@@ -34,12 +34,12 @@
const std = @import("std");
pub fn main() void {
- const n: u8 = 50;
+ var n: u8 = 50;
n = n + 5;
- const pi: u8 = 314159;
+ const pi: u32 = 314159;
- const negative_eleven: u8 = -11;
+ const negative_eleven: i8 = -11;
// There are no errors in the next line, just explanation:
// Perhaps you noticed before that the print function takes two