TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: Frank Malcolm
date: 1993-06-08 21:13:14
subject: greatest common divisor

Hi, Paul.

So you'll stop accusing me of lurking here, and to show I've learnt
something from Brenton (or not ) ...

[...]

PE>  {
PE>    temp = a;
PE>    a = b;
PE>    b = temp;
PE>  }

Couldn't you avoid using the temporary variable by replacing the above
with
     {
       a ^= b;
       b ^= a;
       a ^= b;
     }

Regards, FIM.

 * SLMR 2.1a * I parked my harddisk - and got a ticket!

--- Maximus 2.01wb

* Origin: Sydney PC Users Group - COMPAQ BBS (3:712/505)
SEEN-BY: 3/1 2 4 5 6 54/54 99 711/401 430 807 808 809 932 934 712/218 407 414
SEEN-BY: 712/505 506 515 517 537 618 623 627 704 719 713/306 888 714/906
@PATH: 712/505 623 54/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.