Răspuns:
include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
while(A<=B)
{
if(A%3==0)
cout<<A<<" ";
A++;
}
return 0;
}
Start algoritm
A,B numere naturale
Citeste A,B
Cat timp A<=B executa
Daca A%3=0
Afiseaza A
A=A+1
Sf daca
Sf algoritm
Sau cu test final
include <iostream>
using namespace std;
int main()
{
int A,B;
cin>>A>>B;
do
{
if(A%3==0)
cout<<A<<" ";
A++;
}
while(A<=B);
return 0;
}