COROANA TE ROG!!!
1
#include<iostream>
using namespace std;
int main(){
int s=0, x, y;
cout<<"x ", cin>>x;
cout<<"y ", cin>>y;
if(x>y)
do{
x-=y;
}while(x>=0);
else
while(y<0) y-=x;
s=x+y;
cout<<"suma este="<<s;
return 0;
}
2
structuri alternative simple:
daca <contidite> atunci
<bloc instructiuni 1>
altfel
<bloc instructiuni 2>
structuri alternative repetitive:
repeta
<bloc instructiuni>
pana cand <conditie>
cat timp <conditie>
<bloc instructiuni>