Launch rocket with countdown and acceleration in stdout: Difference between revisions

Content added Content deleted
(add freebasic)
(hmmm... the <lang> tag doesn't like pipes or backslashes. Oh well.)
Line 9: Line 9:
dim as string rocket(1 to 7) = { " ^",_
dim as string rocket(1 to 7) = { " ^",_
" / \",_
" / \",_
" | |",_
" I I",_
" | H |",_
" I H I",_
" | |",_
" I I",_
" /|/ \|\",_
" /I/ \I\",_
"/_||.||_\" }
"/_II.II_\" }


dim as double h = 0, dhdt = 0, d2hdt2 = 0.3, t, countdown = 5, dt
dim as double h = 0, dhdt = 0, d2hdt2 = 0.3, t, countdown = 5, dt