A

Admin • 833K Points
Coach

Q. Find the output of below program.

Code:
int main()
{
for(int i=1;i<=2;i++)
{
for(int j=i;j<=2;j++)
cout<<i<<@;
}
}
  • (A) 1@2@2@
  • (B) 1@1@2@
  • (C) 1@2@1@
  • (D) 1@2@
  • Correct Answer - Option(B)
  • Views: 13
  • 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.