Ver Mensaje Individual
  #3 (permalink)  
Antiguo 10/12/2009, 05:47
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 16 años, 6 meses
Puntos: 139
Respuesta: Intercambiar valores enteros sin variable auxiliar

No se si te referis a esto

Código php:
Ver original
  1. function Inter($a,$b){
  2.  
  3. $a = $a + $b;
  4. $b = $a - $b;
  5. $a = $a - $b;
  6.  
  7.  
  8.  
  9.  
  10. return $a.",".$b;
  11.  
  12. }
  13.  
  14.     echo Inter(4,5);

Última edición por gjx2; 10/12/2009 a las 05:52