Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- int main() {
- int a, b, c, d;
- printf("Enter a number 'a' = ");
- scanf("%d", &a);
- printf("Enter a number 'b' = ");
- scanf("%d", &b);
- c = a;
- d = b;
- a = d;
- b = c;
- printf("The value in 'a' = %d\n", a);
- printf("The value in 'b' = %d\n", b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment