Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a[10000];
- int n;
- int d=0;
- cin >> n;
- for (int i=0; i<n; i++)
- {
- cin >> a[i];
- if (a[i]>0) d++;
- }
- cout << d;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement