Answer to Question #93057 in C++ for Pradeep

Question #93057
What will be printed by the following code?

int x=4;
repeat(4){ x = 2 * x + 3; }
cout << x << endl;
1
Expert's answer
2019-08-22T03:34:00-0400

After 1 iteration x=11, after 2 it's 25, after 3 iteration

x=53, after 4 iteration x=109.

Answer: 109 will be printed.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS