< Back

Post Lab 1

Create a C++ program in a file called Pyramid.cc. This program should read an integer from the command line, and should output a right triangle of asterisks of the specified number of lines.

  $ ./pyramid
  Number of lines? 5
  *
  **
  ***
  ****
  *****
  $

Submission

Submit your .cc file to inquire by the beginning of class on Friday, January 20.