#include <stdio.h>int main(){int x=10,y=20,z=30;if(x>y)z=x;x=y;y=z;printf("x=%d,y=%d,z=%d",x,y,z);}
如果x>y,将x与y交换。