Shell Program - to print natural numbers upto n

CODE:

#! /bin/bash

echo "enter the value of n:"
read n
for((i=1;i<=n;i++))
do
echo " $i"

done

OUTPUT:
Shell Program - to print natural numbers upto n

1 comment :

  1. This comment has been removed by a blog administrator.

    ReplyDelete