~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to third_party/ply/example/BASIC/gosub.bas

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
100 LET X = 3
 
2
110 GOSUB 400
 
3
120 PRINT U, V, W
 
4
200 LET X = 5
 
5
210 GOSUB 400
 
6
220 LET Z = U + 2*V + 3*W
 
7
230 PRINT Z
 
8
240 GOTO 999
 
9
400 LET U = X*X
 
10
410 LET V = X*X*X
 
11
420 LET W = X*X*X*X + X*X*X + X*X + X
 
12
430 RETURN
 
13
999 END