Pancake numbers: Difference between revisions

→‎{{header|Rust}}: format the output
(Add Rust)
(→‎{{header|Rust}}: format the output)
Line 1,798:
for j in 1..6 {
let n = i * 5 + j;
printlnprint!("p({:2}) = {:2} ", n, pancake(n));
}
println!();
Line 1,812:
 
</pre>
 
 
=={{header|Scala}}==
338

edits