Write Program Behaves Shown Rules Program Must Work Length Greater 1 Program Must Use Char Q37022960

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

Here are the rules:

  • Your program must work with any length greater than 1.
  • Your program must use the character the user inputs to draw theparallelogram.
  • Hint: I recommend you think of this as aprogram to output two triangles, one above the other (the longesthorizontal line is the border between the triangles).
  • Your program must use a main() function (no global variables orglobal code other than a call to
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.