Analise o trecho de código abaixo e determine qual a saída gerada:
int i, A = 0, B = 1 ;
for (i = 1; i < 5; i++) {
A = B;
B = i + B * A;
}
cout << " A = " << A << " B = " << B;




A = 8 B = 67

A = 67 b = 4757

A = 39 B = 1525

A = 0 B = 1

A = 6 B = 39
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Lista de comentários


Helpful Social

Copyright © 2024 ELIBRARY.TIPS - All rights reserved.