πŸ“Š C++
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@
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1@1@2@

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
276
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
85%
Success Rate