fork(2) download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. int aux2 = 3;
  7. int a = 1;
  8. while(aux2 > 0){
  9. printf("%d\n",a);
  10. int b = pow(10,a);
  11. printf("%d\n",b);
  12. --aux2;
  13. ++a;
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
1
10
2
100
3
1000