Created
December 25, 2012 15:23
-
-
Save caseywatson/4373710 to your computer and use it in GitHub Desktop.
Merry Christmas Friends!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void string SingChristmasCarol() | |
| { | |
| var carolBuilder = new StringBuilder(); | |
| carolBuilder.AppendLine("Tis the season to be jolly!"); | |
| carolBuilder.AppendLine(SingChorus()); | |
| carolBuilder.AppendLine("Deck the halls with boughs of holly!"); | |
| carolBuilder.AppendLine(SingChorus()); | |
| carolBuilder.AppendLine("Don we now our gay apparel!"); | |
| carolBuilder.AppendLine(SingChorus()); | |
| carolBuilder.AppendLine("Hark the heralds yuletide carol!"); | |
| carolBuilder.AppendLine(SingChorus()); | |
| return carolBuilder.ToString(); | |
| } | |
| public void string SingChorus() | |
| { | |
| var chorusBuilder = new StringBuilder("Fa"); | |
| for (int i = 0; i < 9; i++) | |
| { | |
| chorusBuilder.Append(" la"); | |
| } | |
| chorusBuilder.Append('!'); | |
| return chorusBuilder.ToString(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment