Skip to content

Commit 4eac0fa

Browse files
authored
Create BinaryExample.rs
1 parent 0678f6c commit 4eac0fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

DataTypes/BinaryExample.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main() {
2+
let MyBinary: u8 = 0b1010; // Binary representation of 10
3+
println!("MyBinary: {}", MyBinary);
4+
}

0 commit comments

Comments
 (0)