Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n,x,cnt1,cnt2;
- cin>>n;
- for(int i=1; i<=n; i++)
- {
- cin>>x;
- if(x>=10 && x<=20)
- {cnt1++;}
- else if(x<10 && x>20)
- {cnt2++;}
- }
- cout<<cnt1<<" in";
- cout<<cnt2<<" out";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement