Skip to content

Instantly share code, notes, and snippets.

@rashaabdulrazzak
Created January 7, 2022 12:01
Show Gist options
  • Save rashaabdulrazzak/09313079fad25ace31cbdb3c6d44b016 to your computer and use it in GitHub Desktop.
Save rashaabdulrazzak/09313079fad25ace31cbdb3c6d44b016 to your computer and use it in GitHub Desktop.
condition in rust
fn main (){
let x = 1 ;
if x == 1 {
println!( "value matched" );
} else {
println!( "value not matched" );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment