fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a = 0;
  6. cout << "Введите любое целое чило А: ";
  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 4560KB
stdin
Standard input is empty
stdout
Введите любое целое чило А: