Răspuns :
= include< iostream.h>
int a,b,c,s;
void main ()
cout << ’’a=”; cin >>a;
cout <<”b=”; cin>>b;
cout<<’’c=’’; cin>>c;
S=a+b+c
while(c!=a+b)
a=b;
b=c
cout<<’’c’=’’;cin>>c;
S=S+c
cout<<’’S=’’<<S<<endl;}
int a,b,c,s;
void main ()
cout << ’’a=”; cin >>a;
cout <<”b=”; cin>>b;
cout<<’’c=’’; cin>>c;
S=a+b+c
while(c!=a+b)
a=b;
b=c
cout<<’’c’=’’;cin>>c;
S=S+c
cout<<’’S=’’<<S<<endl;}