求大佬救救我这个萌新吧
本帖最后由 claws0n 于 2018-10-13 12:09 编辑#include <stdio.h>
int main (void)
{
int a,b
printf ("请输入两个整数,中间用空格隔开:");
scanf ("%d %d", &a, &b);
printf ("两数相加是%d\n",a+b"两数相减是%d\n",a-b"两数相乘是%d\n",a*b"两数相除是%d\n",a/b);
return 0;
}
错误:
6 2 expected initializer before 'printf'
7 23 'b' was not declared in this scope
为什么我一个打印都能出错?? 已经自己解决
逗号~
页:
[1]