can anyone help me solve problem with printing a diamond..
i just know the first that we should make a loop for x times, right??
and then i don't know what should i do ...
A diamond made out of text? I would use two for loops, one for the getting bigger part (tip to the middle), and one for getting smaller. Then each if those will need two loops inside.
1 2 3 4 5 6 7 8 9
// tip to middle
for (?) {
for (?)
cout << " ";
cout << "/";
for (?)
cout << " ";
cout << "\";
}