入门代码
int a,b;a=123,b=456;
scanf("%d,%d,",&a,&b);
if(a>b), printf("the big is%d\n",a);
else,printf("the big is %d\n",b);
return 0;
菜鸡入门,这哪里有问题? #include <stdio.h>
int main()
{
int a, b;
a = 123, b = 456;
scanf("%d,%d,", &a, &b);
if (a > b) //if -else语句不能加逗号,要换行
printf("the big is%d\n", a);
else
printf("the big is %d\n", b);
return 0;
}
页:
[1]