4题哪里错了?

jiangshuhao14 2024-04-10 18:32:04 24

#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << "a+b" << "=" << a + b << endl; cout << "a-b" << "=" << a - b << endl; cout << "a*b" << "=" << a * b << endl; cout << "a/b" << "=" << a / b << "..." << a % b; return 0; }

{{ vote && vote.total.up }}

共 3 条回复

jiangshuhao14

明白了,感谢站长。

root 站长

输出改一下, 不是 a+b=9,而是 6+3=9,明白不

root 站长

using namespace std; 分号错了,你打了一个中文的分号