fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void Divisor (int value, int divisor)
  5. {
  6.  
  7. while(value < 30){
  8. value = value * 2 + ++value;
  9.  
  10. cout<<(value);
  11.  
  12. }}
  13.  
  14.  
  15.  
  16. int main() {
  17. // your code goes here
  18.  
  19. Divisor (4, 4) ;
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0.01s 5404KB
stdin
Standard input is empty
stdout
1340