Skip to content

Instantly share code, notes, and snippets.

@ivancrneto
Created May 10, 2019 20:31
Show Gist options
  • Save ivancrneto/0755337bf2bc74566ab710acc5714b2e to your computer and use it in GitHub Desktop.
Save ivancrneto/0755337bf2bc74566ab710acc5714b2e to your computer and use it in GitHub Desktop.
Diamonds

Diamond

Problem Description

Given a letter, print a diamond starting with ‘A’ with the supplied letter at the widest point.

For example: print-diamond ‘C’ prints

  A
 B B
C   C
 B B
  A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment