//input echo "Enter num 1"; $num1 = intval(readline()); echo "Enter num 2"; $num2 = intval(readline()); //Display before swap echo "Numbers before swap are/n num1: $num1 num2: $num2\n"; //swapping $temp = $num1; $num1 = $num2; $num2 = $temp; //display final resut echo "Numbers after swap are/n num1: $num1 num2: $num2\n"; ?>
0 Comments