tuki2501

PROB2.cpp

Apr 4th, 2021
656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.   freopen("SN.TXT"   , "r", stdin );
  6.   freopen("UOCSO.TXT", "w", stdout);
  7.   int x, y; cin >> x;
  8.   cout << "Cac uoc so cua so nguyen " << x << " la:" << endl;
  9.   while (cin >> y) {
  10.     if (x % y == 0) cout << y << ' ';
  11.   }
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment