for, while
Makerist
아두이노기초
2
3595
2024.03.08 15:22
// for문을 사용한 예제 for (int i = 0; i < 5; i++) { Serial.print("Count: "); Serial.println(i); } // while문을 사용한 예제 int count = 0; while (count < 5) { Serial.print("Count: "); Serial.println(count); count++; }