c语言中的代码问题:为什么运行是总是提示declaration syntax error
#include"stdio.h"voidmain(){intmax(inta,intb);inta,b,c;printf("inputtwonumbers\n");sc...
# include"stdio.h"
void main()
{
int max(int a,int b);
int a,b,c;
printf("input two numbers\n");
scanf("%d,%d",&a,&b);
c=max(a,b);
printf("the bigger number is \n",c);
}
int max(int m,int n);
{
int s;
s=m>n ? m: n;
return(s);
} 展开
void main()
{
int max(int a,int b);
int a,b,c;
printf("input two numbers\n");
scanf("%d,%d",&a,&b);
c=max(a,b);
printf("the bigger number is \n",c);
}
int max(int m,int n);
{
int s;
s=m>n ? m: n;
return(s);
} 展开
2个回答
展开全部
# include"stdio.h"
void main()
{
int max(int a,int b);
int a,b,c;
printf("input two numbers\n");
scanf("%d,%d",&a,&b);
c=max(a,b);
printf("the bigger number is %d\n",c); ////////////////////missing a %d
}
int max(int m,int n)///////////remove a ;
{
int s;
s=m>n ? m: n;
return(s);
}
void main()
{
int max(int a,int b);
int a,b,c;
printf("input two numbers\n");
scanf("%d,%d",&a,&b);
c=max(a,b);
printf("the bigger number is %d\n",c); ////////////////////missing a %d
}
int max(int m,int n)///////////remove a ;
{
int s;
s=m>n ? m: n;
return(s);
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询