太水了太水了,这个题太水了。。。
#include<iostream>#include<cstdio>using namespace std;int main(){ int a; cin >> a; int i; for (i=1;i<=a;i++) { if(a%i==0) cout << i << endl ; } return 0;}
找出任意整数的所有因数。。
原文:http://www.cnblogs.com/hanlu-blog/p/6391661.html