c how to program 习题2.18

发布于2020-03-12 837 热度

//c how to program 习题2.18
#include <stdio.h>

int main(void)
{
	int x, y;
	printf("请输入两个整数:");
	scanf("%d%d", &x, &y);
	if(x > y){
		printf("%d is larger\n", x);
	}
	if(x < y){
		printf("%d is larger\n", y);
	}
	if(x == y){
		printf("These numbers are equal\n");
	}
}

记录工作,记录学习,分享知识,分享经验……