Last active
September 12, 2019 00:42
-
-
Save Ryan-Amaral/ed904a695ad1d0b9a1e7ee50c1322fee to your computer and use it in GitHub Desktop.
Generate the lyrics to Du Hast by Rammstein (WIP). Just the intro, but I wouldn't be against doing the full song in the future. This could be a fun challenge to make a concise elegant program to generate the lyrics.
This file contains 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
#include <stdio.h> | |
int main(){ | |
int i; // iterator | |
// initial chorus | |
for(i = 0; i < 19; i++){ | |
printf("Du"); | |
if(i % 3 == 1 || i % 3 == 2 || i > 12){ | |
printf(" hast"); | |
if(i % 3 == 2 || i > 13){ | |
printf(" mich"); | |
if(i > 15){ | |
printf(" gefragt"); | |
if(i == 18){ | |
printf(" und ich hab nichts gesagt"); | |
} | |
} | |
} | |
} | |
printf("\n"); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment