Homework 7: Parallelogram Program

Objective: To output a parallelogram of the specified size and makeup.

Write a program that behaves as shown below:
This program will output a parallelogram.
How long do you want each side to be? 6
Please enter the character you want it to be made of: @
@
@@
@ @
@  @
@   @
@    @
 @   @
  @  @
   @ @
    @@
     @

This program will output a parallelogram.
How long do you want each side to be? 9
Please enter the character you want it to be made of: *
*
**
* *
*  *
*   *
*    *
*     *
*      *
*       *
 *      *
  *     *
   *    *
    *   *
     *  *
      * *
       **
        *

Here are the rules and hints:

Return to main CS 111A page