Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Loops-While/ATS/loops-while-2.ats
Normal file
17
Task/Loops-While/ATS/loops-while-2.ats
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "share/atspre_staload.hats"
|
||||
|
||||
fn
|
||||
loop_while () : void =
|
||||
let
|
||||
var n : uint = 1024U
|
||||
in
|
||||
while (0U < n)
|
||||
begin
|
||||
println! (n);
|
||||
n := n / 2U
|
||||
end
|
||||
end
|
||||
|
||||
implement
|
||||
main0 () =
|
||||
loop_while ()
|
||||
Loading…
Add table
Add a link
Reference in a new issue