请先读题!!!
以下是代码:
#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;
}
讲解在评论区,如有问题私信作者!!!
请先读题!!!
以下是代码:
#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;
}
讲解在评论区,如有问题私信作者!!!