fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int s = 301, n = 0;
  6. while (s > 0) {
  7. s = s - 10;
  8. n = n + 2;
  9. }
  10. cout << n << endl;
  11. return 0;
  12. }
Success #stdin #stdout 0.03s 4780KB
stdin
Standard input is empty
stdout
62