Skip to content

Commit

Permalink
Merge pull request #216 from vmantri83/patch-1
Browse files Browse the repository at this point in the history
Create Pattern28.sh
  • Loading branch information
Vishal21121 authored Mar 30, 2024
2 parents 501cebf + 05f5ff0 commit 86b990e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions PATTERNS/Pattern28/Pattern28.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 86b990e

Please sign in to comment.