Skip to content

ldez/kata-print-diamond

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Diamond Kata

Description

EN

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

FR

Étant donné une lettre, imprimer un diamant en commençant par «A» avec la lettre fournie pour point le plus large.

Par exemple print-diamond ‘C’ affiche :

  A
 B B
C   C
 B B
  A