File: test_while_loops.kbs

package info (click to toggle)
basic256 0.9.6.69a-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,304 kB
  • sloc: cpp: 7,778; yacc: 926; lex: 575; sh: 21; makefile: 7
file content (13 lines) | stat: -rw-r--r-- 171 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#test_while_loops.kbs

t = 0
print "before while"
while t < 10
  u = 0
  while u < 10
    print t*10 + u + " " ;
    u = u + 1
  endwhile
  t = t + 1
endwhile
print "done"