xxxxxxxxxx
void printShape() {
int height = 6; // Change the height as needed
for (int i = 0; i < height; i++) {
for (int j = 0; j < height - i - 1; j++) {
// Print spaces to create the left alignment
print(" ");
}
for (int k = 0; k <= i; k++) {
// Print asterisks to create the increasing sequence
print("*");
}
print(""); // Move to the next line after each row
}
}
void main() {
printShape();
}