Given the following code, what is the final value of i at the end of the program? int i; for(i=0; i<=4;i++) { cout << i << endl; }

Question 5 pow(2,3) is the same as pow(3,2). Question 14 options: True False

Question 6 The functions pow(), sqrt(), and fabs() are found in which include file?

cstdlib

cmath

iostream

regular

Respuesta :

Answer:

The final value of i will be 5 at the end of the program.

i=0, i≤4, prints 0.

i=1, i≤4, prints 1.

i=2, i≤4, prints 2.

i=3, i≤4, prints 3.

i=4, i ≤ 4, prints 4.

i=5, i is not ≤ 4, stops here.

Q-5:

pow(2,3) = 8 and pow(3,2)=9, so they are not same.

Q-6:

The functions pow(), sqrt(), and fabs() are found in which cmath

Explanation: