What's wrong with the code?? it's showing error???? please help... noob here
fn main() {
let mynum = 100;
println!("My number is {}",mynum)
let hisnum = 200;
println!("His number is {}",hisnum)
}
What's wrong with the code?? it's showing error???? please help... noob here
fn main() {
let mynum = 100;
println!("My number is {}",mynum)
let hisnum = 200;
println!("His number is {}",hisnum)
}
Add semicolons after your println!
s.
fn main() {
let mynum = 100;
println!("My number is {}", mynum);
// ^ here
let hisnum = 200;
println!("His number is {}", hisnum);
// ^ and here
}
P.S. Please read the pinned Forum Code Formatting and Syntax Highlighting post.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.