Start Rust Make a boilerplate In your terminal , Type this command line cargo new caculator and you can check boilerplate in your project file. (na
Let's break this code line by line.use std::io;To get user input and give output, we need use 'io'(input/output)'io' comes from standart library 'std'
As mentioned already, Variable is immutable by default in Rust.If you want mutable variable, you can use 'mut' keyword.This code will cause error if t
Data types Every values in rust have a certain date type. For example, when we convert string type to number type , we must add type annotation(: typ