Advertisement
cwchen

[Rust] if else block demo

Aug 22nd, 2017
620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.15 KB | None | 0 0
  1. fn main() {
  2.     let x = 3;
  3.  
  4.     if x > 10 {
  5.         println!("x is larger than 10");
  6.     } else {
  7.         println!("x is not larger than 10");
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement