✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
În secvenţa de instrucţiuni de mai jos, variabilele x şi y sunt de tip int. Care este valoarea pe care trebuie să o aibă iniţial variabila x dacă la finalul executării secvenţei s-a afişat un singur caracter asterisc (*)?
y=x;
while(x<=3)
{
cout<<"*"; | printf("*");
y=y+1; x=x+y;
}