Horje
swapping of two numbers without using third variable in shell script Code Example
swapping of two numbers without using third variable in shell script
#!/bin/bash
echo "enter first number"
read a
echo "enter second number"
read b
echo "a before swapping is $a and b is $b"
#swapping
a=$((a+b))
b=$((a - b))
a=$((a-b))
echo "a after swapping is  $a and b is $b"




Shell

Related
jupyter uninstall Code Example jupyter uninstall Code Example
find and replace in all files in directory centos Code Example find and replace in all files in directory centos Code Example
lightgbm install Code Example lightgbm install Code Example
how to install idle on ubuntu 20.04 Code Example how to install idle on ubuntu 20.04 Code Example
how to stop build in heroku Code Example how to stop build in heroku Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
17