Use \a to control the buzzer.
#include<stdio.h> int main() { printf("\a \a \a"); // a --> alert return 0; }