Return Function Function Rust
fn main() {
let a = 10;
println!("a = {}", foo(a));
}
fn foo(a: i8) -> i8 {
if a > 0 {
return 5;
}
else {
a + 1
}
}
Akshay Vs