fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int A = 1;
  6. while( A <= 3)
  7. {
  8. cout << A * 2;
  9. int B = 1;
  10. while(A >= B)
  11. {
  12. cout << "*";
  13. ++B;
  14. }
  15. ++A;
  16. }
  17. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
2*4**6***