DISPLAY THE PATTERNS

SOURCE CODE:
for a in 1 2 3 4
do
j=1
while [ $j -le $a ]
do
echo -n "*"
j=` expr $j + 1`
done
echo " "
done

OUTPUT:

[examuser35@localhost Jebastin]$ sh display.sh
*
**
***
****
Previous
Next Post »

If you still didn't find what you're looking for, you can search this website below: