Social Icons

Wednesday, 1 May 2013

1 12 123 1234 12345 Pattern Using Shell Programme


#!/bin/sh
c=6;
m=1;
for((i=1;i<=5;i++))
do
for((k=1;k<=c;k++))
do
  echo -n  " "
done
for((j=1;j<=i;j++))
do
echo -n "$j"
echo -n " "
done
c=$(($c-1))
echo -e " "
done


exit 0


No comments:

Post a Comment

 

Sample Text

Sample text

 
Just Programming Cse DriveReputation Management