1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #include<stdio.h> #include<conio.h> void main() { int x,y; //clrscr(); printf("Enter value of X: "); scanf("%d",&x); printf("Enter value of y: "); scanf("%d",&y); if(x>y) { y=x-y; x=x-y; y=x+y; } else if(y>x) { x=y-x; y=y-x; x=y+x; } printf("\nx=%d",x); printf("\ny=%d",y); getch(); } |

**OUTPUT:**

1 2 3 4 | Enter value of X: 56 Enter value of y: 22 x=22 y=56 |