Write a shell script to print all natural numbers from 1 to n.

 


Write a shell script to print all natural numbers from 1 to n.



Program =




#!/bin/bash

echo " UTSAV Gohel  - 91900104011"

 

echo "Enter the Upper limit = "

read n

 

for ((i=1; i<=$n; i++))

do

  echo "$i"

done




Output =