3 solutions
Information
- ID
- 343
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 7
- Tags
- (None)
- # Submissions
- 388
- Accepted
- 82
- Uploaded By
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=1;i<=n;i++){ if(n1||i1){ cout<<"Today,I ate "<<i<<" apple."; } else{ cout<<endl; cout<<"Today,I ate "<<i<<" apples."; } } return 0; }
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.