Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define process main:
- let the type fruit hold:
- a string name
- a decimal weight
- a process output:
- output "Name: ", name, newline, "Weight: " then weight
- let orange be a fruit:
- name is "Orange"
- weight is 0.1
- let apple be a fruit:
- name is "Apple"
- weight is 0.15
- output orange
- meanwhile output apple
- define process main:
- define shortcut "<=" to be "is less than or equal to"
- define process fib:
- let n be parameter 1
- if n <= 2 then:
- return 1
- otherwise:
- run fib with n-1 and n-2 and return it
- run fib with 10 and output it
Advertisement
Add Comment
Please, Sign In to add comment