Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main() {
- freopen("SN.TXT" , "r", stdin );
- freopen("UOCSO.TXT", "w", stdout);
- int x, y; cin >> x;
- cout << "Cac uoc so cua so nguyen " << x << " la:" << endl;
- while (cin >> y) {
- if (x % y == 0) cout << y << ' ';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment