The riddle
Why Are Sidewalks in Winter Like Music?
AnswerIf you don't C sharp, you will B flat
From The Handbook of Conundrums, 1915
Notes that sound like advice
C sharp and B flat are real notes. A sharp raises a note by one semitone and a flat lowers it by one. Read as plain words, C sounds like see, and sharp can mean alert, so see sharp is advice to look sharp. B sounds like be, so be flat is where the person ends up who did not: stretched out on the ground. The warning fits a sidewalk slick with winter ice.
From 1915
The riddle appears in Edith B. Ordway's The Handbook of Conundrums, printed in 1915, with the answer "If you don't C sharp, you will B flat."