mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-30 23:33:27 +03:00
12 lines
177 B
Plaintext
12 lines
177 B
Plaintext
function main(a: bool, b: bool) -> u32 {
|
|
let mut result = 0u32;
|
|
|
|
if a {
|
|
result += 1;
|
|
if b {
|
|
result += 2;
|
|
}
|
|
}
|
|
|
|
return result
|
|
} |