TOPIC
Wrong Answer 40%, porém o programa funciona
LeandroCarvalho asked 4 years ago
include
int main() { int x,y,in,n,out;
scanf("%i",&n);
for(x=1; x<=n; x++)
{
scanf("%i",&y);
if(y>=10 && y<=20)
{
in++;
}
else if(y<10 || y>20)
{
out++;
}
}
printf("%i in\n",in);
printf("%i out\n",out);
return 0;
}
This topic was solved and cannot recieve new replies.