mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 21:36:36 +00:00
15 lines
241 B
C++
15 lines
241 B
C++
|
#include <bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main() {
|
||
|
double x;
|
||
|
int ans = 0;
|
||
|
for (int i = 1; i <= 6; i++) {
|
||
|
cin >> x;
|
||
|
if (x > 0) ans++;
|
||
|
}
|
||
|
cout << ans << " positive numbers" << endl;
|
||
|
return 0;
|
||
|
}
|