6 kyu

ASCII Fun #1: X- Shape

577 of 1,610zruF

Description:

You will get an odd integer n (n >= 3) and your task is to draw an X. The lines are separated by newlines (\n).

Use the following characters: '■' and '□' (Ruby, Crystal and PHP: 'o' and ' ').

Examples

                                     ■□□□■
            ■□■                      □■□■□
  x(3) =>   □■□             x(5) =>  □□■□□
            ■□■                      □■□■□
                                     ■□□□■

Series: ASCII Fun

ASCII Art

Stats:

CreatedApr 30, 2017
PublishedMay 2, 2017
Warriors Trained2904
Total Skips57
Total Code Submissions4244
Total Times Completed1610
JavaScript Completions577
CoffeeScript Completions7
Python Completions672
Ruby Completions64
Crystal Completions7
C# Completions158
Julia Completions20
PHP Completions60
C Completions66
Haskell Completions19
Go Completions29
Rust Completions36
D Completions4
Factor Completions6
Pascal Completions5
Total Stars52
% of votes with a positive feedback rating95% of 353
Total "Very Satisfied" Votes321
Total "Somewhat Satisfied" Votes29
Total "Not Satisfied" Votes3
Total Rank Assessments11
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • zruF Avatar
  • GiacomoSorbi Avatar
  • anter69 Avatar
  • donaldsebleung Avatar
  • kazk Avatar
  • adrian.eyre Avatar
  • Souzooka Avatar
  • dinar667 Avatar
  • stellartux Avatar
  • trashy_incel Avatar
  • lsnbr Avatar
  • akar-0 Avatar
  • Kacarott Avatar
  • farhanaditya Avatar
  • yLaWy Avatar
  • graymal Avatar
Ad