+ 1
Hi guyes, This is my first challenge.
You can use any language. Please wright a program to swap values of the following variables without using extra variable. X = 3, Y =4;
7 Respuestas
+ 5
https://code.sololearn.com/cZPz6jkWLDMW/#cpp
This Programs Swap boths value
+ 3
@Dush
i like to use your code but with:
x=x+y;
y=x-y;
x=x-y;
+ 1
It is simple, first try yourself, then you can check below:
https://code.sololearn.com/ceyQcTWByqzs/?ref=app
+ 1
im impressed with @#RahulVerma python solution but that's not i was looking for. By the way you can't use temporary variable.
+ 1
This is something i was expected.
https://code.sololearn.com/cfZ0oXLy24bT/#java