fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. int j=0;
  8. while( n>(1.2) )
  9. {
  10. n--;
  11. j++;
  12. }
  13. cout << j << endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 3344KB
stdin
0.7
stdout
0