Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int swip (int x ,int y)
- {
- int temp;
- temp = y;
- y = x;
- x = temp;
- printf("After Swapping\nx = %d\ny = %d\n", x, y);
- }
- int main()
- {
- int x, y,result ;
- printf("Enter the value of x and y\n");
- scanf("%d%d", &x, &y);
- swip(x,y);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement