I'm trying to create a program that continues the Fibonacci sequence by one number every time enter is pressed, and will end when mode/quit is pressed. Any suggestions on how the syntax should go?
Date: 12 Sep 2014 15:02
Number of posts: 4
RSS: New posts
The getKey page should discuss everything you need to know. Essentially, your code will look like the following:
Hello, I believe this is what you mean:
The following code will display 1, then wait for Enter to be pressed, press two and wait for Enter to be pressed, and so on.
If you wanted to use getKey to do the same thing:
:Repeat getkey = 105
It repeats (="waits") until the getkey number is 105, which is the code for the Enter button I believe.