5分钟完成此题
#include<iostream>
using namespace std;
int main()
{
//freopen("xxx.in","r",stdin);
//freopen("yyy.out","w",stdout);
int n;
cin >> n;
for(int i=1;i<=n;i++)
{
if(n%i==0)
cout << i << endl;
}
//fclose(stdin);
//fclose(stdout);
return 0;
}