mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-30 05:02:04 +03:00
15 lines
203 B
Plaintext
15 lines
203 B
Plaintext
function iteration() -> u32 {
|
|
let mut a = 0u32;
|
|
|
|
for i in 0..10 {
|
|
a += 1;
|
|
}
|
|
|
|
return a
|
|
}
|
|
|
|
function main() {
|
|
let total = iteration() + iteration();
|
|
|
|
assert_eq!(total, 20);
|
|
} |