learning-rust

mrgrouse's git repo for their failing to learn rust
Log | Files | Refs

main.rs (192B)


      1 fn add2(x: f64, y: f64) -> f64 {
      2     x + y
      3 }
      4 
      5 fn main() {
      6     const X: f64 = 1.2930;
      7 
      8     const Y: f64 = 92.839;
      9 
     10     println!("hello world! X = {X} and Y = {Y} \n added = {}", add2(X, Y));
     11 }