Răspuns:
1)
#include <iostream>
using namespace std;
int main()
{int a,b,i;
cout<<"a= ";cin>>a;
cout<<"b= ";cin>>b;
for(i=a;i<=b;i++)
{if(i%3==0)
cout<<" "<<i;}
}
2)
#include <iostream>
using namespace std;
int main()
{unsigned int n,i;
cout<<"n=";cin>>n;
if(n<106)
for(i=1;i<=n;i++)
if(n%i==0)
cout<<" "<<i;
}
Poftim! Sper sa te ajute!