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 - swapping of two numbers using third variable
CODE:
#! /bin/bash
echo "enter two numbers:"
read a
read b
echo "Before swapping, a=$a and b=$b"
z=$a
a=$b
b=$z
echo "After swapping, a=$a and b=$b"
OUTPUT:
No comments :
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments ( Atom )
No comments :
Post a Comment