fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int n, k, p;
  5. cin >> n >> k >> p;
  6. for ( int i = 1; i>=n ; --i){
  7. if (n%p == 0)
  8. cout<<n<<" ";
  9. }
  10. }
Success #stdin #stdout 0.01s 5544KB
stdin
158 4 11
stdout
Standard output is empty