Intercambio de valor
Intercambio de valores entre dos variables:#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int x, y;
printf ("Introduzca un numero: ");
scanf ("%d", &x);
printf ("Introduzca un segundo numero: ");
scanf ("%d", &y);
x=x*y;
y=x/y;
x=x/y;
printf ("El primero ahora es %d y el segundo es %d\n", x, y);
system("PAUSE");
return 0;
}
0 Comments:
Post a Comment
<< Home