有点难度需要注意细节
查看原帖
有点难度需要注意细节
1437796
llhhss楼主2024/9/2 18:44

参考代码:

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	if(n==1 || n==0) cout<<"Today, I ate "<<n<<" apple.";
	else cout<<"Today, I ate "<<n<<" apples.";
	return 0;
}
2024/9/2 18:44
加载中...