- 1
How to print structure using for loop?
* * * * * * * * * * * * * * * * * * * *
3 Réponses
0
By printing row by row, column by column.
In C++:
for (int row = 0; row < 4; ++row)
{
for (int column = 0; column < 5; ++column)
{
std::cout << "* ";
}
std::cout << '\n';
}
0
Thank you