#include <iostream>
int main() {
int result = 0;
while (result < 5)
++result;
do result += 2;
while (++result < 5);
std::cout << result;
}
Code not formated What will be printed out as a result of the following code execution? #include <iostream> int main() { int result = 0; while (result < 5) ++result; do result += 2; while (++result < 5); std::cout << result; }
2017 Sep 6, 12:52:18 PM
Login in to like
Login in to comment