mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 07:22:21 +00:00
15 lines
201 B
TypeScript
15 lines
201 B
TypeScript
|
export function loopWhile(n: i32): void {
|
||
|
while (n) {
|
||
|
n = n - 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export function loopWhileInWhile(n: i32): void {
|
||
|
while (n) {
|
||
|
n = n - 1;
|
||
|
while (n) {
|
||
|
n = n - 1;
|
||
|
}
|
||
|
}
|
||
|
}
|