✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
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,c,n;
cin >> a;
b = a; c = 1; n = 1;
while ( a!=0){
if (a<b) { b = a; c = n; }
cin >> a;
n++;
}
cout <<b<<endl << c<<endl;
Si l'entrada és 999 -44 -22 -5 1000 0 -998 1001 indiqueu quina afirmació és certa:
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!