Aktiver Arbeitgeber
Write pseudocode to swap two numbers without third variable .
Anonym
solution is to use the XOR method (addition method will cause integer overflow for big values) a = a ^ b b = a ^ b a = a ^ b
STEP 1: START. STEP 2: ENTER x, y. STEP 3: PRINT x, y. STEP 4: x = x + y. STEP 5: y= x - y. STEP 6: x =x - y. STEP 7: PRINT x, y. STEP 8: END.
Verschaffe dir einen Vorsprung bei Chancen und Insider-Tipps, indem du deinem Traumunternehmen folgst.
Erhalte personalisierte Jobempfehlungen und Updates, indem du Suchanfragen startest.