Paste Search Dynamic
Recent pastes
Enter number of rows
  1. echo -n "Enter number of rows : "
  2. read rows
  3. chars=({a..z})
  4.  
  5. for((i=0; i<=rows; i++))
  6. do
  7.   for((j=0; j<i; j++))
  8.   do
  9.     echo -n "${chars[j]} "
  10.   done
  11.   for((j-=2;j>=0;j--))
  12.   do
  13.     echo -n "${chars[j]} "
  14.   done
  15.   echo
  16. done
Parsed in 0.007 seconds