Need help with project.

Hi, I need help modifying this code to make it print '' 4 times and then start a new line and print it 4 times again i need to print the '***' on 4 lines
Here is the code:

int sivunPituus;
int numStart = 0;
int numEnd = 4;
char star = '*';
void setup() {
Serial.begin(9600);
}

void loop() {
if (numStart != numEnd) {
numStart++;
Serial.print(star);
}
}

TakahuoneenSami:
Hi, I need help modifying this code to make it print '' 4 times and then start a new line and print it 4 times again i need to print the '***' on 4 lines

It sounds like you need a for() loop to iterate over how many lines you want and another for() loop to iterate over how many '*' you want on each line.

Two for loops.

Outer one running four times for the println(); inner one four times for the *.

Or even simpler:

Serial.print(F("****\n****\n****\n****"));

Don't know if that's the answer your instructor is looking for but it's doing what's asked for.

Thanks for the quick response.