1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-12 08:06:04 +02:00

Compare commits

...

4 Commits

Author SHA1 Message Date
abdullhakim-sami 859a06b119
Merge 7e70463775 into 7417f01d5d 2023-09-21 16:34:27 -07:00
Dave Gauer 7417f01d5d
Update README.md with new clone instructions 2023-09-19 20:51:05 -04:00
Dave Gauer d699fc1824 Announce move to Codeberg in README 2023-09-19 21:18:27 -04:00
abdullhakim-sami 7e70463775
Update 012_while2.zig
changed u32 to u16 (cuz we know the number won't change beyond u16 unless we broke things)

u16 = between 0 and 65,535.

the exercise have u32 (its not related to the current exercise )
2023-06-18 15:43:23 +03:00
2 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,13 @@
# Ziglings
## ⚠️ Attention! Ziglings has moved to Codeberg!
Check out our handy new URL: https://ziglings.org
Or visit the repo directly at: https://codeberg.org/ziglings/exercises
***
Welcome to Ziglings! This project contains a series of tiny
broken programs (and one nasty surprise). By fixing them, you'll
learn how to read and write [Zig](https://ziglang.org/) code.
@ -51,8 +59,8 @@ $ zig version
Clone this repository with Git:
```
$ git clone https://github.com/ratfactor/ziglings
$ cd ziglings
$ git clone https://ziglings.org
$ cd ziglings.org
```
Then run `zig build` and follow the instructions to begin!

View File

@ -21,7 +21,7 @@
const std = @import("std");
pub fn main() void {
var n: u32 = 2;
var n: u16 = 2;
// Please set the continue expression so that we get the desired
// results in the print statement below.