int buzzerPin= 8;
int tones[] =
{
262,
294,
330,
349,
392,
440,
494,
523,
587,
659
};
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
for (int i = 0; i<10;i++){
tone(buzzerPin,tones[i]);
delay(500);
noTone((buzzerPin));
delay(100);
}
delay((2000));
}