C语言编程:交换两个整数的顺序
#include 'stdio.h'
int main()
{ int x,y,t;
scanf('%d%d', &x,&y);
if( x > y )
{ t = x; x = y; y = t;
y = x + y - (x = y);
}
printf('%d,%d ' ,x,y);
}
原文地址: https://www.cveoy.top/t/topic/ol9S 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
#include 'stdio.h'
int main()
{ int x,y,t;
scanf('%d%d', &x,&y);
if( x > y )
{ t = x; x = y; y = t;
y = x + y - (x = y);
}
printf('%d,%d ' ,x,y);
}
原文地址: https://www.cveoy.top/t/topic/ol9S 著作权归作者所有。请勿转载和采集!