Canadian Computing Competition: 2003 Stage 1, Junior #1
A trident is a fork with three tines (prongs). A simple picture of a trident can be made from asterisks and spaces:
Copy
* * *
* * *
* * *
*******
*
*
*
*
In this example, each tine is a vertical column of 3 asterisks. Each tine is separated by 2 spaces. The handle is a vertical column of 4 asterisks below the middle tine.
Tridents of various shapes can be drawn by varying three parameters:
You are to write an interactive program to print a trident. Your program
should accept as input the parameters
Sample Input
Copy
4
3
2
Sample Output
Copy
* * *
* * *
* * *
* * *
*********
*
*
Comments