Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Leonardo-numbers/XPL0/leonardo-numbers.xpl0
Normal file
14
Task/Leonardo-numbers/XPL0/leonardo-numbers.xpl0
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
int N, L, L0, L1, Add;
|
||||
[Text(0, "Enter L(0), L(1), Add: ");
|
||||
L0:= IntIn(0);
|
||||
L1:= IntIn(0);
|
||||
Add:= IntIn(0);
|
||||
IntOut(0, L0); ChOut(0, ^ );
|
||||
IntOut(0, L1); ChOut(0, ^ );
|
||||
for N:= 3 to 25 do
|
||||
[L:= L1 + L0 + Add;
|
||||
IntOut(0, L); ChOut(0, ^ );
|
||||
L0:= L1;
|
||||
L1:= L;
|
||||
];
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue