A
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<<@;
}
}
{
for(int i=1;i<=2;i++)
{
for(int j=i;j<=2;j++)
cout<<i<<@;
}
}
- Correct Answer - Option(B)
- Views: 13
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.