#include <iostream>
using namespace std;
int main() {
cout << "Podaj liczbę do wyznaczenia jej dzielników : " << endl;
int n;
cin>>n;
cout << "Dzielnikami liczby " <<n<< " są: " ;
for (int i=1;i<=n;i++)
if (n%i==0)
cout << " " <<i;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: