How do I exchange the values of A and B

Nick Trout nickatvideosystemdotcodotuk
Tue Nov 21 07:55:27 EST 2000


x,y = y,x


"Charlie Kilmer" <ckilmer at juniata.dgsys.com> wrote in message
news:3A19CD9E.D625A57E at juniata.dgsys.com...
> How do I exchange the values
> int A = x;
> int B= y;
>
> here x and y are the values
>
> how do exchange the values so that
> int A = y;
> int B = x;
>
> --without using a temp to make it happen.
>
> please cc my email at ckilmer at juniata.dgsys.com
>
> Thanks,
>
> Charles Kilmer
> Mclean VA
>
>
>
>
>
>
>
>
>
>





More information about the Python-list mailing list