Răspunsuri

Cel mai inteligent răspuns!
2014-01-18T01:04:02+02:00
#include<iostream.h>
void main()
{
int n,i,d,v[100];
cout<<"n=";
cin>>n;
for(i=0;i<n;i++)
 {
  cout<<"v["<<i<<"]=";
  cin>>v[i];
 }
for(i=0;i<<n;i++)
 {
  for(d=1;d<=v[i];d++)
   if(v[i]%d==0)
     cout<<d<<" ";
  cout<<endl;
 }
}
1 5 1