while.ino 259 B

123456789101112131415161718192021
  1. int i =10;
  2. void setup() {
  3. Serial.begin(9600);
  4. while (i>=0){
  5. Serial.println("countdown:");
  6. Serial.println(i);
  7. i--;
  8. delay(1000);
  9. if (i<0){
  10. Serial.println("Happy news Years");
  11. break;}
  12. }
  13. }
  14. void loop()
  15. {
  16. }