Fibonacci in Ti Basic (original) (raw)
Published on 03 February 2025 (Updated: 03 February 2025)
Welcome to the Fibonacci in Ti Basic page! Here, you'll find the source code for this program as well as a description of how the program works.
Current Solution
Input "",Str1
"0123456789"->Str2
length(Str1)->L
L<1->E
0->D
0->V
1->N
1->S
While E=0 and N<=L
sub(Str1,N,1)->C
inString(Str2,C)-1->K
If C="+" or C="-"
Then
D>0->E
If C="-"
Then 0-S->S
End
Else
K<0->E
D+1->D
V*10+K*S->V
End
N+1->N
End
If E or D<1 or V<0 Then Disp "Usage: please input the count of fibonacci numbers to output"
Else
0->A
1->B
For(N,1,V)
A+B->C
B->A
C->B
Disp toString(N)+": "+toString(A)
End
End
Fibonacci in Ti Basic was written by:
- rzuckerm
If you see anything you'd like to change or update, please consider contributing.
How to Implement the Solution
No 'How to Implement the Solution' section available. Please consider contributing.
How to Run the Solution
No 'How to Run the Solution' section available. Please consider contributing.