D♭♭

From Esolang
Jump to navigation Jump to search

Introduction

In music, there are a couple rare marks known as "Double flat" and "Double sharp". While a sharp or a flat raises or lowers the pitch half a tone, respectively, double flats and double sharps raise or lower the pitch one full tone. Since D is one full tone above C, D double flat IS C. Therefore, the language D♭♭ IS C as well.

Pronunciation

D♭♭ is pronounced "Dee double flat."

Examples

Hello World:

#include <stdio.h>
int main() {
   printf("Hello, World!");
   return 0;
}

Quine:

main(a){printf(a="main(a){printf(a=%c%s%c,34,a,34);}",34,a,34);}

FizzBuzz:

#include <stdio.h> 
  
int main(void) 
{ 
    int i; 
    for (i=1; i<=100; i++) 
    { 
        if (i%15 == 0)         
            printf ("FizzBuzz\t");     
        else if ((i%3) == 0)     
            printf("Fizz\t");                  
        else if ((i%5) == 0)                        
            printf("Buzz\t");                  
      
        else // print the number             
            printf("%d\t", i);                  
  
    } 
  
    return 0; 
}

Cat:

#include <stdio.h>

int main(void) 
{
    char name[20];
    fgets(name,20,stdin);
    printf(name);
    return 0;
}

See also