fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int a,i,y=0;
  5. long int x;
  6. scanf("%d",&a);
  7. for(i=0; i<a; i++){
  8. scanf("%d",&x);
  9. if(x > 9 && x < 21){
  10. y++;
  11. }
  12. }
  13. printf("%d in\n%d out\n",y,a-y);
  14. return 0;
  15. }
Success #stdin #stdout 0s 4524KB
stdin
Standard input is empty
stdout
0 in
21852 out