Advertisement
cwchen

[Rust] Comparision operators

Aug 22nd, 2017
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.16 KB | None | 0 0
  1. fn main() {
  2.     assert!(2 + 3 == 5);
  3.     assert!(2 + 3 != 4);
  4.     assert!(4 + 1 > 3);
  5.     assert!(4 + 1 < 7);
  6.     assert!(3 + 2 >= 4);
  7.     assert!(3 + 2 <= 6);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement