标签:os io for c ios return include as
#include<iostream>
using namespace std;
void YinZi(int n);
int main()
{
int n;
cout<<"please input an number : "<<endl;
cin>>n;
YinZi(n);
return 0;
}
void YinZi(int n)
{
for(int i=1;i<=n;i++)
{
if(n%i==0)
cout<<i<<" ";
}
}
12.输入一个正整数,输出它所有的因子,布布扣,bubuko.com
标签:os io for c ios return include as
原文地址:http://www.cnblogs.com/jixiaowu/p/3890533.html