mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-09 09:38:24 +00:00
16 lines
218 B
Plaintext
16 lines
218 B
Plaintext
fn works(x: i64) -> i64 {
|
|
let z = 0i64;
|
|
if 2i64 == x {
|
|
z = x * 2i64;
|
|
} else {
|
|
z = x * 3i64;
|
|
}
|
|
return z;
|
|
}
|
|
|
|
fn main() -> i64 {
|
|
let y = 2i64;
|
|
let z = y;
|
|
return works(z);
|
|
}
|