mirror of
				https://codeberg.org/ziglings/exercises.git
				synced 2025-11-04 04:35:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			412 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			412 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
--- exercises/012_while2.zig	2023-10-03 22:15:22.122241138 +0200
 | 
						|
+++ answers/012_while2.zig	2023-10-05 20:04:06.896097219 +0200
 | 
						|
@@ -25,7 +25,7 @@
 | 
						|
 
 | 
						|
     // Please set the continue expression so that we get the desired
 | 
						|
     // results in the print statement below.
 | 
						|
-    while (n < 1000) : ??? {
 | 
						|
+    while (n < 1000) : (n *= 2) {
 | 
						|
         // Print the current number
 | 
						|
         std.debug.print("{} ", .{n});
 | 
						|
     }
 |