Some Rust basic things are below:
how to write comments
Types
function
How to write comments
fn main() {
// This is how we write comment
/* and this is another
way to write comment */
println!("Hello, World!");
print!("Good evening ");
println!("let's move to the next line\nthis is new line");
println!("print quote \' and double quote \"");
println!("\ndoing {2} for {1} years and i {0} it", "love", 2, "learning");
println!("{language} is a system programming laguage", language = "Rust");
println!{"The summation of 25 + 10 = {}", 25 + 10};
}
Types: Scalar, Compound
Scalar Data Types: integers, floats, booleans, char
println!("The maximum number in i8 is = {}", std::i8::MAX);
Compound Data Types: Strings, Tuples, Arrays, Vectors
Strings - &str, string