Deadplushie

From Esolang
Jump to navigation Jump to search
Not to be confused with Deadfish.

What is deadplushie?

Deadplushie is an esolang derived from Deadfish and Plushie-Completeness

Syntax

it has three commands

character function name
P Sets A Value To "Sin(90°) + Cos(0°)" Plushie
C Prints The "XKCD Random Number" Complete
N Prints The Square-Root Of 961 Ness

Implementations

Deadfish

if P then ii
if C then iiso
if N then iiiiiisdddddo

C

#include <stdio.h>

int main(void)
{
  int a;
  char c;
  a = 0;

  while (c = getchar())
  {
    switch (c)
    {
      case 'P':
        a = 2;
        break;
      case 'C':
        putchar('4');
        break;
      case 'N':
        putchar('3');
        putchar('1');
        break;
      default:
        break;
    }
  }

  return 0;
}