int a[8];
int result = 0;
for (int i = 0; i < a.size(); ++a) {
if (a[i] > 0)
result++;
}
return result;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
int a[8];
int result = 0;
for (int i = 0; i < a.size(); ++a) {
if (a[i] > 0)
result++;
}
return result;