fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. const int TEN = 10;
  5.  
  6. int main() {
  7. int no, count = 0;
  8. while (no >= 0) {
  9. cin >> no;
  10. --no;
  11. if (no % TEN == 0) {
  12. ++count;
  13. }
  14. }
  15. cout << count;
  16. return 0;
  17. }
Success #stdin #stdout 0s 5280KB
stdin
11

stdout
2