/*keep sounding the bell unless any key is pressed */ #include main() { clrscr(); printf("To Stop the Bell Sound Press Any Key\n"); while(!kbhit()) //continue as long as there is no keyboard hit printf("%c",0x07); //send the Bell ASCII character to monitor }