Do While Loop
Do While Loop
int main() {
int n;
// Print stars
int j = 0;
do {
cout << "*";
j++;
} while (j < stars);
spaces = 1, stars = 2 * n - 3;
// Print stars
int j = 0;
do {
cout << "*";
j++;
} while (j < stars);
return 0;
}