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