I need the following output using nested for loops only.. Can someone please help me?

Thanks a lot..

Welcome radium,
Show us your work. Please.

Member Avatar for jencas

maybeb you should start with something like:

std::string createString(int i)
{
  // create the string of "level i"
}

for (int i  = 1; i <= 5; ++i)
{
   cout << createString(i);
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.