Răspuns:#include <iostream>
using namespace std;
int n, dmin,dmax=1;
int main()
{
cout << "y= "; cin >> y;
dmin=Y;
int b;
for (n=2; d*d<=y; ++b)
{
if (n%d==0)
{
if (dmin>d)
{
dmin=d;
if (dmax<n/d) dmax=n/d;
}
}
}
cout << "divizor propriu minim= " << dmin << "\n";
cout << "divizor propriu maxim= " << dmax;
return 0;
}
Citește mai multe pe Brainly.ro - https://brainly.ro/tema/5992146#readmore
Explicație: