Monday, September 21, 2020

Rosetta Code

Rosetta Code is a programming chrestomathy site. The idea is to present solutions to the same task in as many different languages as possible, to demonstrate how languages are similar and different, and to aid a person with a grounding in one approach to a problem in learning another.

For example, to calculate the Fibonacci sequence in ArnoldC:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
IT'S SHOWTIME
 
HEY CHRISTMAS TREE f1
YOU SET US UP @I LIED
TALK TO THE HAND f1
 
HEY CHRISTMAS TREE f2
YOU SET US UP @NO PROBLEMO
 
HEY CHRISTMAS TREE f3
YOU SET US UP @I LIED
 
STICK AROUND @NO PROBLEMO
 
GET TO THE CHOPPER f3
HERE IS MY INVITATION f1
GET UP f2
ENOUGH TALK
TALK TO THE HAND f3
 
GET TO THE CHOPPER f1
HERE IS MY INVITATION f2
ENOUGH TALK
 
GET TO THE CHOPPER f2
HERE IS MY INVITATION f3
ENOUGH TALK
 
CHILL
 
YOU HAVE BEEN TERMINATED

No comments:

Post a Comment