Magic squares of doubly even order: Difference between revisions

Line 2,161:
 
fn main() {
let argsn: Vec<String>usize = env::args().collectnth(1);.and_then(|arg| arg.parse().ok()).expect(
assert!( "
"Please specify the size of the magic square, as a positive multiple of 4."
args.len() == 2,
",
"Please specify the size of the magic square, as a positive multiple of 4."
);
let n = args[1].parse::<i32>().unwrap();
assert!(
n >= 4 && n % 4 == 0,
Anonymous user