openconsoleclsDeclare "kernel32",Beep(Frequency as Int, Msec as Int)w = 0for i = 1 to 400 w = w + 5 If w = 360 then w = 0 b = 2 * 3.141 * w / 360 f = sin(b) * 400 + 500 Beep (f,10) next ido:until inkey$<>""closeconsoleend