2024-12-11 00:22:13 +01:00
|
|
|
|
|
|
|
|
2024-12-11 03:11:00 +01:00
|
|
|
fn main() -> int {
|
2024-12-11 00:22:13 +01:00
|
|
|
add(1, 2)
|
|
|
|
}
|
|
|
|
|
|
|
|
fn add(a: int, b: int) -> int {
|
2024-12-11 03:11:00 +01:00
|
|
|
let c = a;
|
|
|
|
let d = b;
|
|
|
|
{
|
|
|
|
let a = c;
|
|
|
|
+ a d
|
|
|
|
}
|
|
|
|
//+ a b
|
2024-12-11 00:22:13 +01:00
|
|
|
}
|