CKT3
Title
Question
While statement was used to stop the count , so can't we use break statement ?
Arduino Display-counter-using-Arduino 06-07 min 10-20 sec
Answers:
while statement willdisplay the count when the pushbutton is in pressed state.
When you release the button, the state is LOW and it will come out of the while loop.
No need of break statement in this code.
Login to add comment