1 solutions

  • 0
    @ 2025-11-27 11:54:18

    C++ :

    #include <iostream>
    using namespace std;
    int main() {
        int a;
        cin >> a;
        for (int i = 1; i <= a; i++) {
            if (a % i == 0) {
                cout << i << endl;
            }
        }
    }
    
    • 1

    Information

    ID
    14
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By