Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int a, b;
- puts("Ingrese los valores a intercambiar:");
- scanf("%d",&a);
- scanf("%d",&b);
- printf("Los valores sin intercambiar son: a=%d b=%d\n", a, b);
- int atemp = a;
- a=b;
- b=atemp;
- printf("Los valores ahora son: a=%d b=%d", a, b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement