Jump to content

Loops/While: Difference between revisions

m (Moved to Iteration cat)
Line 125:
)
</pre>
 
=={{header|Make}}==
NEXT=`expr $* / 2`
MAX=10
all: $(MAX)-n;
0-n:;
%-n: %-echo
@-make -f while.mk $(NEXT)-n MAX=$(MAX)
%-echo:
@echo $*
 
Invoking it
|make -f while.mk MAX=1024
 
=={{header|OCaml}}==
418

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.