summaryrefslogblamecommitdiff
path: root/meap/meap-code/ch2/ch2-intro-to-numbers.rs
blob: db7b070c7f4e15b49313d3e1de48b7ed4d12b6b2 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                            
fn main() {
  let twenty = 20; // <1>
  let twenty_one: i32 = twenty + 1; // <2>
  let floats_okay = 21.0; // <3>
  let one_million = 1_000_000; // <4>

  println!("{}; {}; {}; {}", twenty, twenty_one, floats_okay, one_million);
}