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 »

Still not found what you are looking for? Try again here.