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.
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);
}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.