Pages

Subscribe:

Print The Number Following Patttern

Shell script print the number following pattern


1
2 2
3 3 3
4 4 4 4
5 5 5 5 5


#!/bin/bash
clear
i=1
while [ $i -le 5 ]
do
n=1
    while [ $n -le $i ]
    do
    echo " $i \c "
    n=`expr $n + 1 `
    done
echo "\n"
 i=`expr $i + 1 `
done


comments powered by Disqus
 

Listed In

Bloggers - Meet Millions of Bloggers http://Link-exchange.comxa.com
Blog Search: The Source for Blogs Internet Blogs

Disclaimer

The contents in this blog are taken from various sources available over the internet, therefore we do not gurantee of it's accuracy, if you find any of the content in the blog is infringing it's copyright, please do email us on '123techguide@gmail.com' and we will make sure to remove the same from the blog at the earliest.