Daisy.cs
If you have the .NET SDK installed (specifically the C# compiler), copy this code and compile as described.
The code and output reminds me of my old Commodore 64 programming days.
[I don't recall where I found this, but it's not my creation.]
// csc /o+ /t:exe /out:Daisy.exe Daisy.cs using System; using System.Threading; using System.Runtime.InteropServices; using System.Security; public sealed class Daisy { public static void Main() { Beep(2093, 769);Beep(1760, 769);Beep(1396, 769);Beep(1047, 769);Beep(1174, 192); Beep(1319, 192);Beep(1397, 192);Beep(1175, 385);Beep(1397, 192);Beep(1047, 962); Thread.Sleep(385);Beep(1568, 769);Beep(2093, 769);Beep(1760, 769);Beep(1397, 769); Beep(1175, 192);Beep(1319, 192);Beep(1397, 192);Beep(1568, 385);Beep(1760, 192); Beep(1568, 962);Thread.Sleep(385);Beep(1760, 192);Beep(1865, 192);Beep(1760, 192); Beep(1568, 192);Beep(2093, 385);Beep(1760, 192);Beep(1568, 192);Beep(1397, 962); Beep(1568, 192);Beep(1760, 385);Beep(1397, 192);Beep(1175, 385);Beep(1397, 192); Beep(1175, 192);Beep(1047, 962);Beep(1047, 192);Beep(1397, 385);Beep(1760, 192); Beep(1568, 385);Beep(1047, 192);Beep(1397, 385);Beep(1760, 192);Beep(1568, 192); Beep(1760, 192);Beep(1865, 192);Beep(2093, 192);Beep(1760, 192);Beep(1397, 192); Beep(1568, 385);Beep(1047, 192);Beep(1397, 962); } [DllImport("kernel32.dll"), SuppressUnmanagedCodeSecurity] public static extern Boolean Beep(Int32 frequency, Int32 duration); }
[Listening to: The 77s - Ba-Ba-Ba-Ba (from All Fall Down)]