A

Admin • 833K Points
Coach

Q. Find the output of below program.

Code:
int main()
{
int i = 0, x = 0;

do
{
if(i % 5 == 0)
{
cout<<x;
x++;
}

++i;
}while(i<10);

cout<<x;

return 0;
}
  • (A) 0
  • (B) 01
  • (C) 012
  • (D) 0123
  • Correct Answer - Option(C)
  • Views: 25
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.