mirror of
https://github.com/ratfactor/ziglings
synced 2024-09-24 12:41:06 +02:00
6ad9774189
When I hit 999 exercises, I will finally have reached the ultimate state of soteriological release and no more exercises will be needed. The cycle will be complete. All that will be left is perfect quietude, freedom, and highest happiness.
19 lines
369 B
Diff
19 lines
369 B
Diff
24,25c24,25
|
|
< fn printPowersOfTwo(numbers: [4]u16) ??? {
|
|
< loop (numbers) |n| {
|
|
---
|
|
> fn printPowersOfTwo(numbers: [4]u16) void {
|
|
> for (numbers) |n| {
|
|
34c34
|
|
< fn twoToThe(number: u16) ??? {
|
|
---
|
|
> fn twoToThe(number: u16) u16 {
|
|
38c38
|
|
< loop (n < number) : (n += 1) {
|
|
---
|
|
> while (n < number) : (n += 1) {
|
|
42c42
|
|
< return ???;
|
|
---
|
|
> return total;
|