先把n的值返回,判断是不是大于0,大于0就循环,循环完再n-1
#include<iostream>
using namespace std;
int main()
{
int n,x,y;
cin>>n;
while(n--)
{
int t;
cin>>t;
if(t>=10&&t<=20) x++;
else y++;
}
cout<<x<<" in"<<endl;
cout<<y<<" out"<<endl;
return 0;
}