// Name: Choi Ka Ho
// No.: 240021155
// Class: EG114403/1D
// Program: 1X_Ex4_Q1_Choi Ka Ho
void setup() {
Serial.begin(115200);
}
void loop() {
int i, j;
//The outer loop in a nested loop is responsible for
for (int i = 5; i > 0; i = i - 1) //limiting the number of rows
{
// The inner loop is responsible for controlling the number
for (int j = 0; j < (i * 2 - 1); j = j + 1) //of variables per row
{
Serial.print("*");
//"..."is a String '...'is a Character or number
}
Serial.println(); //Complete the above task once and then
//go to a new line
}
while (1);
}