fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a = 0;
  6. cout << "enter number А: ";
  7. cin >> a;
  8. for(int b = 1; b < a; b++)
  9. {
  10. if ((a % (b * b) == 0) && (a % (b * b * b) != 0))
  11. cout << b;
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 4296KB
stdin
23124
stdout
enter number А: 2