You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[allow(unused_variables)]fnsoma(a:u64,b:u64) -> u64{
a + b
}fnmult(a:u64,b:u64) -> u64{return a * b;// não é comum}fnmain(){let name = "Gerson";let age:i32 = 58;println!("=====================================");println!("Hello, world!");println!("Estou aprendendo Rust!");println!("Meu nome é {name} e minha idade é {age}", name=name, age=age);println!("O resultado de 3 + 5 é: {}",3 + 5);println!("====================================");}
=====================================
Hello, world!
Estou aprendendo Rust!
Meu nome é Gerson e minha idade é 58
O resultado de 3 + 5 é: 8
====================================
Errors:
Compiling playground v0.0.1 (/playground)
Finished dev [unoptimized + debuginfo] target(s) in 0.84s
Running `target/debug/playground`
The text was updated successfully, but these errors were encountered:
(Playground)
Output:
Errors:
The text was updated successfully, but these errors were encountered: