为什么会编译错误?
查看原帖
为什么会编译错误?
1783923
zyc9632楼主2025/7/1 09:27
#include<bits/stdc++.h>
using namespace std;
int main() {
	int n;
	cin>>n;
	if(n==1) {
		cout<<"Today, I ate "<<n<<" apple.";
	}
	if(n==0)cout<<"Today, I ate "<<n<<" apple.";
	if(n>1)cout<<cout<<"Today, I ate "<<n<<" apples.";
	return 0;
}
2025/7/1 09:27
加载中...