例1.3求两个整数中的较大者。

#include <stdio.h>
int main()
{
	int max(int x,int y);
	int a,b,c;
	scanf("%d,%d",&a,&b);
	c=max(a,b);
	printf("max=%d\n",c);
	return 0;
}
int max(int x,int y)
{
	int z;
	if(x>y)z=x;
	else z=y;
	return(z);
}

第一章 程序设计和C语言----案例-------续

相关文章:

  • 2021-08-10
猜你喜欢
  • 2021-04-12
  • 2021-11-18
  • 2021-05-08
  • 2022-01-15
相关资源
相似解决方案