C语言程序:求两个整数的差值
void main( ) { int a,b; printf('Enter a,b:'); scanf('%d,%d',&a,&b); if(a>b) a-=b; if(b>a) b-=a; printf('%3d%3d ',a,b); } 若运行时从键盘输入:18,11↙,则输出结果:____________________ 内容:7 11
原文地址: https://www.cveoy.top/t/topic/o0Uq 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
void main( ) { int a,b; printf('Enter a,b:'); scanf('%d,%d',&a,&b); if(a>b) a-=b; if(b>a) b-=a; printf('%3d%3d ',a,b); } 若运行时从键盘输入:18,11↙,则输出结果:____________________ 内容:7 11
原文地址: https://www.cveoy.top/t/topic/o0Uq 著作权归作者所有。请勿转载和采集!