repellent

hai..this is my first time to use arduino...i want to ask how to make coding for 1 buzzer but many push button...and then how to make different frequency range by click different push button...

for example:

input:
button 1:10khz
button 2:15khz
button 3:20khz
button 4:25khz

output:
only one buzzer

can you help me..

https://www.arduino.cc/reference/en/language/functions/advanced-io/tone/

Does your buzzer reproduce those frequencies? Many won’t.