diff --git a/Swap-without-third-variable/Swap Without Third Variable.txt b/Swap-without-third-variable/Swap Without Third Variable.txt new file mode 100644 index 0000000..8aa0267 --- /dev/null +++ b/Swap-without-third-variable/Swap Without Third Variable.txt @@ -0,0 +1,13 @@ +#include +#include + int main() +{ +int a=600, b=500; +printf("Before swap a=%d b=%d",a,b); +a=a*b; +b=a/b; +a=a/b; +system("cls"); +printf("\nAfter swap a=%d b=%d",a,b); +return 0; +} \ No newline at end of file