bleh
This commit is contained in:
parent
9f431fcb11
commit
052fb87667
@ -1,9 +1,27 @@
|
|||||||
|
const SEP: &str = "\n---- bleh ----\n";
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello, world!");
|
println!("Hello, world!");
|
||||||
|
|
||||||
|
println!("{}", SEP);
|
||||||
|
|
||||||
println!("0x{:x}", 0b1111_1010_1111_1010_1111_1010_1111);
|
println!("0x{:x}", 0b1111_1010_1111_1010_1111_1010_1111);
|
||||||
println!("0b{:b}", 0xfafafaf);
|
println!("0b{:b}", 0xfafafaf);
|
||||||
println!("{}", 0xfafafaf);
|
println!("{}", 0xfafafaf);
|
||||||
println!("{}", 0xfeefee);
|
println!("{}", 0xfeefee);
|
||||||
println!("0b{:b}", 0xfeefee);
|
println!("0b{:b}", 0xfeefee);
|
||||||
|
|
||||||
|
println!("{}", SEP);
|
||||||
|
|
||||||
|
let sum = 5 + 10;
|
||||||
|
let difference = 95.5 - 4.3;
|
||||||
|
let product = 4 * 30;
|
||||||
|
let quotient = 56.7 / 32.2;
|
||||||
|
let remainder = 43 % 5;
|
||||||
|
|
||||||
|
println!("sum: {}", sum);
|
||||||
|
println!("difference: {}", difference);
|
||||||
|
println!("product: {}", product);
|
||||||
|
println!("quotient: {}", quotient);
|
||||||
|
println!("remainder: {}", remainder);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user