Visula Gallery

Hello world

Here is the "Hello World" program in Visula.  The program's name is HelloWorld, and it imports a module called io, which contains an object called out which contains an object called writeln.  The writeln object is called with the argument "Hello world!".

The looping version introduces a while loop in green, with the condition true to loop infinitely.

Output:

Hello world!

Factorial

Recursive

       

Iterative


Prime number sieve

Graphical mode

Text mode

Output:
2
3
5
7
...
991
997

8-queens

Output:

Solution found:
Q.......
....Q...
.......Q
.....Q..
..Q.....
.Q......
...Q....

The Towers of Hanoi

Output:

The Towers of Hanoi
1: 1:2:3:4:5:6:
2:
3:
Move 1: move disc from 1 to 3
1: 2:3:4:5:6:
2:
3: 1:
Move 2: move disc from 1 to 2
1: 3:4:5:6:
2: 2:
3: 1:
...
Move 63: move disc from 3 to 2
1:
2: 1:2:3:4:5:6:
3:

99 Bottles of beer (short version)


RPN Calculator

Input:

rpn 4 3 plus 2 times

Output:

14