diff --git a/AcWing/712/712.cpp b/AcWing/712/712.cpp new file mode 100644 index 00000000..5a01ccd9 --- /dev/null +++ b/AcWing/712/712.cpp @@ -0,0 +1,14 @@ +#include + +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; +}