Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
Perl Programming

Tutorial: Boxes - testing two numbers.

 

1. Line


Big

The pickCol method is called for each of the boxes. The colour of each box depends on the parameters i and j

Change the code so that a vertical line is drawn as shown.

Vertical line

2. Cross


Big

A cross of a vertical and a horizontal line.

Cross

3. Leading Diagonal


Big

The leading diagonal is from top left to bottom right.

Leading diagonal

4. Trailing Diagonal


Big

The trailing diagonal is from top right to bottom left.

Trailing diagonal

5. Rightmost columns


Big

The three columns to the right.

Rightmost columns

6. Bottom right corner


Big

Nine boxes in the bottom right corner.

Rightmost columns