Quick Print – CSKC
Sign In

Search

siteicon
Solved Problem #CPP#2031 Back

Problem Statement - Output writing – double increment in loop

Write the output of the following code. Assume that required header files are included.

int main() 
{
  for(int i=10;i<=50;i+=10)
  cout<<i++/2<<" ";
  return 0;
}

Solution

		 

Run Output

5 10 16 21