Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int a[10000];
  8. int n;
  9. int d=0;
  10. cin >> n;
  11. for (int i=0; i<n; i++)
  12. {
  13. cin >> a[i];
  14. if (a[i]>0) d++;
  15. }
  16. cout << d;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement