✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Donat el següent fragment de programa que llegeix una seqüència d'enters acabada en 0 pel teclat i escriu 2 enters:
int a,b,pos,n;
cin >> a;
b = a; c = 1; n = 1;
while ( a!=0){
cin >> a;
if (a>=b) { b = a; c = n; }
n++;
}
cout <<b<<endl << c<<endl;
Si l'entrada és -999 -44 -22 -5 -1000 0 998 -1000 indiqueu quina afirmació és certa
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!