Advertisement
Samiul_Islam_Abir

4

Jun 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int x,y,temp;
  5.     printf("First number is:\n");
  6.     scanf("%d",&x);
  7.     printf("Second number is:\n");
  8.     scanf("%d",&y);
  9.  
  10.     temp=x;
  11.     x=y;
  12.     y=temp;
  13.  
  14.     printf("num1:%d\n",x);
  15.     printf("num2:%d\n",y);
  16.  
  17.     return 0;
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement