Magic squares of doubly even order: Difference between revisions
Content deleted Content added
m →{{header|Rust}}: Optimization of width |
|||
Line 2,174: | Line 2,174: | ||
let mc = (n * n + 1) * n / 2; |
let mc = (n * n + 1) * n / 2; |
||
println!("Magic constant: {}\n", mc); |
println!("Magic constant: {}\n", mc); |
||
⚫ | |||
let bits = 0b1001_0110_0110_1001u32; |
let bits = 0b1001_0110_0110_1001u32; |
||
let size = n * n; |
let size = n * n; |
||
⚫ | |||
let mult = n / 4; |
let mult = n / 4; |
||
let mut i = 0; |
let mut i = 0; |