Q. What is the output of the following C++ code?
Code:
#include <iostream>
using namespace std;
int main ()
{
int i;
for (i = 7; i > 0; i--)
{
cout << i;
if (i == 5)
break;
}
return 0;
}
β
Correct Answer: (B)
765