Advertisement
Guest User

Untitled

a guest
Mar 8th, 2020
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. ClrHome
  2. "ABCDEFGHIJKLMNOPQRSTUVWXYZθ"→Str1
  3. 0→S
  4. Output(2,21,"TIME:
  5. Disp " . . . . ."," •",""," •",""," •",""," •
  6. Output(10,2,"•
  7. Repeat 0
  8. 1→O
  9. 1→P
  10. 1→Q
  11. If not(S
  12. Output(10,25,"^v
  13. If S
  14. Output(10,25,"<>
  15. Repeat Q>10
  16. Output(Q+1,P+2,sub(Str1,O,1
  17. O+1→O
  18. P+2→P
  19. If P≥10
  20. Then
  21. 1→P
  22. Q+2→Q
  23. End
  24. End
  25. Repeat (K≥41 and K≤55) or (K≥24 and K≤26) or K=34
  26. getKey→K
  27. End
  28. If K=25 or K=34
  29. 0→S
  30. If K=24 or K=26
  31. 1→S
  32. If K=41
  33. Then
  34. 1→D
  35. 6→E
  36. 11→F
  37. 16→G
  38. 21→H
  39. End
  40. If K=42
  41. Then
  42. 2→D
  43. 7→E
  44. 12→F
  45. 17→G
  46. 22→H
  47. End
  48. If K=43
  49. Then
  50. 3→D
  51. 8→E
  52. 13→F
  53. 18→G
  54. 23→H
  55. End
  56. If K=44
  57. Then
  58. 4→D
  59. 9→E
  60. 14→F
  61. 19→G
  62. 24→H
  63. End
  64. If K=45
  65. Then
  66. 5→D
  67. 10→E
  68. 15→F
  69. 20→G
  70. 25→H
  71. End
  72. If not(S) and K≥41
  73. Then
  74. sub(Str1,27,length(Str1)-26
  75. sub(Str1,1,25)+sub(Str1,D,1)+Ans
  76. sub(Str1,D+1,length(Str1)-D
  77. sub(Str1,1,D-1)+sub(Str1,E,1)+Ans
  78. sub(Str1,E+1,length(Str1)-E
  79. sub(Str1,1,E-1)+sub(Str1,F,1)+Ans
  80. sub(Str1,F+1,length(Str1)-F
  81. sub(Str1,1,F-1)+sub(Str1,G,1)+Ans
  82. sub(Str1,G+1,length(Str1)-G
  83. sub(Str1,1,G-1)+sub(Str1,H,1)+Ans
  84. sub(Str1,H+1,length(Str1)-H
  85. sub(Str1,1,H-1)+sub(Str1,26,1)+Ans
  86. End
  87. End
  88. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement