Empleador activo
Write pseudocode to swap two numbers without third variable .
Anónimo
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.
Sigue a tus empresas favoritas para estar al tanto de las últimas oportunidades y disponer de información desde adentro.
Recibe recomendaciones y actualizaciones personalizadas al iniciar tu búsqueda.