Ask coding questions

← Back to all posts
Console.Beep() is not working C#
Elizabeth11

I was trying out this code I got from https://docs.microsoft.com/en-us/dotnet/api/system.console.beep?view=netframework-4.7.2 and I copied it onto this repl.it (https://repl.it/@Elizabeth11/Mary-Had-A-Little-Lamb). It is supposed to play the notes of Mary Had a Little Lamb which all have different frequencies but whenever I run the repl.it it plays the same note with the same frequency. I then copied the code on Visual Studio and it worked so I think there's something wrong with repl.it connecting to the sound from the computer maybe.

Voters
KenMela
Elizabeth11