fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double x, S=0;
  6. while (cin >> x)
  7. {
  8. S++;
  9. }
  10. cout << S;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3472KB
stdin
20 16 17
stdout
3