tindent1.nim 680 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. discard """
  2. output: '''Success'''
  3. """
  4. const romanNumbers1 =
  5. [
  6. ("M", 1000), ("D", 500), ("C", 100),
  7. ("L", 50), ("X", 10), ("V", 5), ("I", 1) ]
  8. const romanNumbers2 =
  9. [
  10. ("M", 1000), ("D", 500), ("C", 100),
  11. ("L", 50), ("X", 10), ("V", 5), ("I", 1)
  12. ]
  13. const romanNumbers3 =
  14. [
  15. ("M", 1000), ("D", 500), ("C", 100),
  16. ("L", 50), ("X", 10), ("V", 5), ("I", 1)
  17. ]
  18. const romanNumbers4 = [
  19. ("M", 1000), ("D", 500), ("C", 100),
  20. ("L", 50), ("X", 10), ("V", 5), ("I", 1)
  21. ]
  22. proc main =
  23. var j = 0
  24. while j < 10:
  25. inc(j);
  26. if j == 5: doAssert false
  27. var j = 0
  28. while j < 10:
  29. inc(j);
  30. if j == 5: doAssert false
  31. main()
  32. echo "Success"