forked from Rick-Lang/rickroll-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWhileExample.rickroll
More file actions
29 lines (24 loc) · 834 Bytes
/
WhileExample.rickroll
File metadata and controls
29 lines (24 loc) · 834 Bytes
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
take me to ur heart
give areYouRolling up ["Together ","forever", "and never to part", "Together", "foverer", "we two"]
give astleyCounter up 0
together forever and never to part
and if u ask me how im feeling astleyCounter is length(areYouRolling)
desert u
say goodbye
i just wanna tell u how im feeling areYouRolling[astleyCounter] + "\n"
give astleyCounter up astleyCounter + 1
say goodbye
### Equivalent to Python
# ----------------------
# if __name__ == '__main__':
# areYouRolling= ["Together ","forever", "and never to part", "Together", "foverer", "we two"]
#
# astleyCounter=0
#
# while True:
# if astleyCounter == len(areYouRolling):
# break
#
# print(areYouRolling[astleyCounter] + "\n")
#
# astleyCounter+=1