#!/bin/bash # Assign initial values to the variables a=30 b=40 c=45 echo "Before swapping a number: a = $a, b = $b, c = $c" # Swap the values a=$((a ^ b ^ c)) b=$((a ^ b ^ c)) c=$((a ^ b ^ c)) a=$((a ^ b ^ c)) echo "After swapping a number: a = $a, b = $b, c = $c"
To embed this project on your website, copy the following code and paste it into your website's HTML: