Guest User

Untitled

a guest
Jul 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. fn main() {
  2. let n = 20;
  3. for i in 0..n {
  4. for j in 0..n {
  5. print!(
  6. "{:2}",
  7. if i == 0 || i == n - 1 || j == 0 || j == n - 1 || i == j || i + j == n - 1 {
  8. "▉"
  9. } else {
  10. " "
  11. }
  12. );
  13. }
  14. println!();
  15. }
  16. }
Add Comment
Please, Sign In to add comment