Back
Close

Starry X's

Statement

 Goal

A friend has asked you to create x's for them using the * symbol, however they do not know how wide they want them to be. Your job is to create a program that reads the width of the cross n and outputs a cross of the same width
Input
Line 13 An integer n for the width of the x
Output
Output a x of n width
Constraints
n >= 3
Example
Input
5
Output
*   *
 * *
  *
 * *
*   *

Game modes
Fastest, Shortest, Reverse

Test cases
Odd Test Small Test
Input
5
Output
* * * * * * * * *

Validator 1 Validator
Input
3
Output
* * * * *

Even Test Small Test
Input
6
Output
* * * * ** ** * * * *

Validator 2 Validator
Input
4
Output
* * ** ** * *

Odd Test Large Test
Input
13
Output
* * * * * * * * * * * * * * * * * * * * * * * * *

Validator 3 Validator
Input
19
Output
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Even Test Large Test
Input
20
Output
* * * * * * * * * * * * * * * * * * ** ** * * * * * * * * * * * * * * * * * *

Validator 4 Validator
Input
24
Output
* * * * * * * * * * * * * * * * * * * * * * ** ** * * * * * * * * * * * * * * * * * * * * * *

Solution language

Solution

Stub generator input