3934题目不对吗

zhengchenhao1 2022-04-17 19:51:50 0

#include using namespace std; int main(){ int a; cin>>a; cout<<"This is an integer."; if(a%2==0){ cout<<" It's even. "; }

return o;

}

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

共 3 条回复

root 站长

最后面错了。

root 站长
#include <iostream>
using namespace std;
int main() {
    int a;
    cin >> a;
    cout << "This is an integer.";
    if (a % 2 == 0) {
        cout << " It's even. ";
    }

    return o; //  return 是零,不是字母o
}
zhengchenhao1