Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. int n;
  6. cin>>n;
  7. while (n>0)
  8. {
  9. int a,ile;
  10. cin>>a;
  11. int tab1[a];
  12. for(int i=a;i>0;i--){
  13. int x;
  14. cin>>x;
  15. tab1[i]=x;
  16. }
  17.  
  18. for(int i=a;i>0;i--){
  19. if(tab1[i]>=10){
  20. ile++;
  21. }
  22. }
  23.  
  24. cout<<ile<<endl;
  25. n--;
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement