fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int x = 50;
  7. int n = 0;
  8. while(n++ && (x/=10)) {
  9. cout << x << " " << n << endl;
  10. }
  11.  
  12. // your code goes here
  13. return 0;
  14. }
Success #stdin #stdout 0s 3464KB
stdin
Standard input is empty
stdout
Standard output is empty