fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x,n,art=1;
  6. cin>>n;
  7. for(x=1;x<n;x++)
  8. { if(n%x==3) art=art*x;
  9. }
  10. cout<<art;
  11.  
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 15232KB
stdin
19
stdout
512