Answer:
// Program is written in C++ Programming Language
// Comments are used for explanatory purpose
// Program starts here
#include<iostream>
using namespace std;
int main()
{
// Declare integer variable n which serves as the quotient.
int n;
// Prompt to enter any number
cout<<"Enter any integer number: ";
cin>>n;
// Check for divisors using the iteration below
for(int I = 1; I<= n; I++)
{
// Check if current digit is a valid divisor
if(n%I == 0)
{
// Print all divisors
cout<<I<<" ";
}
}
return 0;
}