Skip to content

Instantly share code, notes, and snippets.

@Ryan-Amaral
Last active September 12, 2019 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ryan-Amaral/ed904a695ad1d0b9a1e7ee50c1322fee to your computer and use it in GitHub Desktop.
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.
#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