#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <conio.h>
#include <windows.h>
int main() {
int x, y, n;
char ch;
srand(time(NULL));
while(!kbhit()) {
x=(rand()%80)+20; // x는 20과 100 범위에 있다.
y=(rand()%3000)+50; // y는 50과 3050 범위에 있다.
Beep(y,x);
}
return 0;
}