Computer and Information Technology notes
Home
Programs »
Java Programs
C Programs
Shell Programs
Practical Programs »
Data Structures
Web Programming
ComputerNetwork
DBMS
OperatingSystem
OpenSource(OST)
ComputerGraphic
Microcontroller
Advanced DBMS
SWS
E-books »
First Year
Computer
I.T.
Mumbai University »
Question Paper
Solved Programs
Sitemap
Placements
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:
1 comment :
umair
3 March 2019 at 04:24
This comment has been removed by a blog administrator.
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments ( Atom )
This comment has been removed by a blog administrator.
ReplyDelete