diff --git a/PATTERNS/Pattern28/Pattern28.sh b/PATTERNS/Pattern28/Pattern28.sh new file mode 100644 index 0000000..d14dbdc --- /dev/null +++ b/PATTERNS/Pattern28/Pattern28.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +echo -n "Enter the number of rows:" +read n +alphabet=(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) + + for ((i=n; i>=1; i--)); + do + for ((j=i; j<=n; j++)); + do + echo -n "${alphabet[j-1]} " + done + echo + done