fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a = 2, c=1;
  7. while (c<8){
  8. cout << a <<"";
  9. if(c%2==1){
  10. a+=3;
  11. c++;
  12. }
  13. else{
  14. a+=2;
  15. c++;
  16. }
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0s 4536KB
stdin
Standard input is empty
stdout
25710121517