#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
int shu1,shu2;
printf("请输入比较大小的两个数:");
scanf("%d%d",&shu1,&shu2);
if(shu1<shu2)
{
shu1+=shu2;
shu2=shu1-shu2;
shu1=shu1-shu2;
}
printf("%d>%d",shu1,shu2);
return 0;
}
C语言比较两数大小
最新推荐文章于 2024-07-24 00:01:44 发布