上代码
#include <bits/stdc++.h> using namespace std; int main() { int year; cin >> year; if(year >= 2) { cout<<"Today, I ate "<<year<<" apples."; } else { cout<<"Today, I ate "<<year<<" apple."; } return 0; }