0
What is the output of this code?
int x = 3; while (x++<10){ x+=2; } cout <<x; After the 3rd iteration isn't the result comes 12?? . I got this code in Sololearn Challenge.. The correct answer shows 13. Can anyone explain?
2 Answers
+ 4
Moon you are allowed to try out the code yourself in the Code Playground to see what its output will be. Insert cout statements to see how the variables change inside the loop.
0
Oww... Now I get it.. Thank u. ćļ¼Øļ¼”ļ¼°ļ¼°ļ¼¹ ļ¼“ļ¼Æ ļ¼Øļ¼„ļ¼¬ļ¼°ć