#include<iostream>
using namespace std;
int main()
{
int num , divisor;
cout<<“Enter the number: “<<endl;
cin>>num;
divisor=num;
if(num<0)
{
cout<<“Please enter the positive integer: “<<endl;
}
cout<<“The divisors of “<<num<<” are:”<<endl;
while(divisor>=1)
{
if(num%divisor==0)
{
cout<<divisor<<endl;
}
divisor–;
}
system(“pause”);
}