User:Cabbagelang Programming/sandbox

This is the official wikipedia account of Cabbagelang. Cabbagelang is a good programming language. You can search on Google. It is easy, like this:

//Input a number,output its square.

val n

redef n=kin

number n

count n^2

//count n*n

output n

//Fibonacci

val a=1

val b=1

while 1=1

output a

output " "

output b

output " "

count a+b

count b+a

endwhile

//Factorial

val n

val a

redef n=kin

number n

redef a=n

while a>1

count a-1

count n*a

endwhile

output n