help with pascalz again

u ve got 2 vars a,b both of them byte and u set them with read

the problem is how do u swap a and b without using a third var



a:=8;
b:=3;

So , how to swap them without using a third var?
[img|left]http://i856.photobucket.com/albums/ab124/SeesWhatYouDidThere/Hot/img4a925387b9d9d.jpg[/img]
Comments
7
>he is coding in pascal
image: girls-getty_1376498i
school stuff
and cba to think
Parent
1 bar = 100 000 pascals
oooh.. very nice boobs there!
The future of humanity is bright indeed.

a = a + b
b = a - b
a = a - b
wanted to complain , but u were right D:
Parent
yeh, name of the girl plz
Back to top