Button buzzer programming

Hey can anyone told me how i can write a program for turning buzzer on when i press a switch in arduino. ???