Exercises

Splice Atbash + Tests

8-Point Star

Problem Descripton

Write a function that displays an 8-point star in an n x n grid, where n is an odd integer that is supplied as an argument to the function. The smallest such star you need to handle is a 7x7 grid (i.e., when n is 7.)

example of star example of star

Solving the Problem

*The blue comments below are examples of the approach.

8pt Star Solution 8pt Star Solution

Splice Atbash + Tests