Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int num,i,n,in=0,out=0;
- scanf("%d",&num);
- for(i=1; i<=num; i++)
- {
- scanf("%d",&n);
- if(n>=10 && n<=20)
- {
- in++;
- }
- else
- out++;
- }
- printf("%d in\n%d out\n",in,out);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement