void visualizzaTriangolo(int n) {
for (int i = 0; i < n; i++) {
for (int j = 0; j <= i; j++) {
cout << "*";
}
cout << endl;
}
}

This function is to make a triangle but it makes it full of *, i need id with the area empty but sadly it gives me some errors when i put the condition in the second for, does anyone know how should i put the condition right?