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