Blah
Jump to navigation
Jump to search
Blah is a very funny esolang that doesn't even make sense, created by User:None1.
Execution
Blah has no input.
If the code is exactly ^
, print 20 ^
's
If the code is exactly v
, print 20 v
's
If the code is exactly <
, print 20 <
's
If the code is exactly >
, print 20 >
's
If the code is not any of them, print 20 Blah!
's
Implementations
Python
import sys l=list("<>^v") code=sys.stdin.read() if code in l: print(code*20) else: print("Blah!"*20)
C
#include<stdio.h> int main(){ char a,b; a=getchar(); b=getchar(); if(b==EOF&&(a=='^'||a=='v'||a=='<'||a=='>')){ for(int i=1;i<=20;i++) putchar(a); return 0; } for(int i=1;i<=20;i++) printf("Blah!"); return 0; }
Example Programs
code:
^
output:
^^^^^^^^^^^^^^^^^^^^
Quine
Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!Blah!
This is obviously the only quine in Blah, no proof is needed.