azureHeartC

From Esolang
Jump to navigation Jump to search

AzureHeartC(or abbr as AHC) is most not esoteric in Esolangs.

It is like my VNL, but kinda modern.

If you wanna learn about this, you need to learn ArnoldC(or abbr as AC, not ACcepted)


AzureHeartC
Designed by User:PrySigneToFry
Appeared in 2024
Computational class Unknown
Reference implementation Unimplemented
File extension(s) .azhc

Syntax

I don't wanna talk about syntax anymore.

In fact, it is the pseudo-code, 'cause it's actually like language that we say.

Program

Hello, world

Program start.
print("Hello, world!\n")
Kill program.

A+B Problem

Program start.
defvar a, b, c -> float
input(a)
input(b)
c=a+b
print(c)
Kill program.

Even or odd?

Program start.
defvar a -> int
input(a)
if a modulo 2 equals to 0:
    print("It is a even number.")
else:
    print("It is a odd number.")
endif.
Kill program.

Fibonacci

Function fibonacci start with type int.
arguments: int N.
if N == 1:
    return 1
elif N == 2:
    return 1
elif N > 2:
    return fibonacci(N-1)+fibonacci(N-2)
else:
    return ValueError(description="What the hell did you tell me to do?!")
endif.
End Function.
Program start.
defvar a -> int
input(a)
print(fibonacci(a))