tcountup.nim 212 B

1234567891011121314151617181920212223242526
  1. discard """
  2. output: '''
  3. 0123456789
  4. 0.0
  5. '''
  6. """
  7. # Test new countup
  8. for i in 0 ..< 10'i64:
  9. stdout.write(i)
  10. echo()
  11. # 11099
  12. var
  13. x: uint32
  14. y: float
  15. for i in 0 ..< x:
  16. if i == 1: echo i
  17. y += 1
  18. echo y